Skip to content

Commit 626aa6c

Browse files
committed
Merge branch 'master' into release-0.15.0
2 parents 531b494 + 2bcf888 commit 626aa6c

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

dmd2/statement.c

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)