File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -240,10 +240,16 @@ int Statement::blockExit(FuncDeclaration *func, bool mustNotThrow)
240240
241241 void visit (Statement * s )
242242 {
243+ #if IN_LLVM
244+ std ::string msg ("Statement::blockExit: " );
245+ msg .append (s -> toChars ());
246+ llvm_unreachable (msg .c_str ());
247+ #else
243248 printf ("Statement::blockExit(%p)\n" , s );
244249 printf ("%s\n" , s -> toChars ());
245250 assert (0 );
246251 result = BEany ;
252+ #endif
247253 }
248254
249255 void visit (ErrorStatement * s )
@@ -698,6 +704,14 @@ int Statement::blockExit(FuncDeclaration *func, bool mustNotThrow)
698704 result = BEfallthru | BEthrow | BEreturn | BEgoto | BEhalt ;
699705 }
700706
707+ #if IN_LLVM
708+ void visit (AsmBlockStatement * s )
709+ {
710+ // Assume the worst
711+ result = BEany ;
712+ }
713+ #endif
714+
701715 void visit (ImportStatement * s )
702716 {
703717 result = BEfallthru ;
You can’t perform that action at this time.
0 commit comments