summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-02-25 20:59:29 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-02-25 20:59:29 +0000
commit4208835eec108b1816b53e54ce777b77dedc247a (patch)
tree68c1da9711f239405fe1b5e3a279f970cb70f87c /clang/lib/CodeGen
parent1cdbc5404b408dfe241392dc9c2d25bece69178d (diff)
downloadbcm5719-llvm-4208835eec108b1816b53e54ce777b77dedc247a.tar.gz
bcm5719-llvm-4208835eec108b1816b53e54ce777b77dedc247a.zip
Temporarily disable clearing of insert point (to indicate unreachable
code) when calling noreturn functions; general expression emission isn't ready to do the right thing in all cases. llvm-svn: 65473
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r--clang/lib/CodeGen/CGCall.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGCall.cpp b/clang/lib/CodeGen/CGCall.cpp
index 8f4367c8586..93f4ebe9452 100644
--- a/clang/lib/CodeGen/CGCall.cpp
+++ b/clang/lib/CodeGen/CGCall.cpp
@@ -1787,6 +1787,11 @@ RValue CodeGenFunction::EmitCall(const CGFunctionInfo &CallInfo,
Builder.CreateUnreachable();
Builder.ClearInsertionPoint();
+ // FIXME: For now, emit a dummy basic block because expr
+ // emitters in generally are not ready to handle emitting
+ // expressions at unreachable points.
+ EnsureInsertPoint();
+
// Return a reasonable RValue.
return GetUndefRValue(RetTy);
}
OpenPOWER on IntegriCloud