diff options
Diffstat (limited to 'test/Transforms/LowerInvoke/2004-02-29-PHICrash.ll')
-rw-r--r-- | test/Transforms/LowerInvoke/2004-02-29-PHICrash.ll | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/Transforms/LowerInvoke/2004-02-29-PHICrash.ll b/test/Transforms/LowerInvoke/2004-02-29-PHICrash.ll new file mode 100644 index 0000000..0777013 --- /dev/null +++ b/test/Transforms/LowerInvoke/2004-02-29-PHICrash.ll @@ -0,0 +1,15 @@ +; RUN: llvm-as < %s | opt -lowerinvoke -enable-correct-eh-support -disable-output + +define void @_ZNKSt11__use_cacheISt16__numpunct_cacheIcEEclERKSt6locale() { +entry: + br i1 false, label %then, label %UnifiedReturnBlock +then: ; preds = %entry + invoke void @_Znwj( ) + to label %UnifiedReturnBlock unwind label %UnifiedReturnBlock +UnifiedReturnBlock: ; preds = %then, %then, %entry + %UnifiedRetVal = phi i32* [ null, %entry ], [ null, %then ], [ null, %then ] ; <i32*> [#uses=0] + ret void +} + +declare void @_Znwj() + |