diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-02-25 20:59:29 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-02-25 20:59:29 +0000 |
commit | 0334a4ec63c43ac9ed13faa30fbcfc7697828ffd (patch) | |
tree | 64dd7ce2cbf250a4281d727cb06f1fd9e4a2b8fd /lib/CodeGen/CGCall.cpp | |
parent | e5731f81497d11f95027a500a3ee118f4fc9e1be (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65473 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGCall.cpp')
-rw-r--r-- | lib/CodeGen/CGCall.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/CodeGen/CGCall.cpp b/lib/CodeGen/CGCall.cpp index 8f4367c858..93f4ebe945 100644 --- a/lib/CodeGen/CGCall.cpp +++ b/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); } |