[llvm] r228786 - Fix invalid LLVM IR in PruneEH tests
Reid Kleckner
reid at kleckner.net
Tue Feb 10 18:06:48 PST 2015
Author: rnk
Date: Tue Feb 10 20:06:47 2015
New Revision: 228786
URL: http://llvm.org/viewvc/llvm-project?rev=228786&view=rev
Log:
Fix invalid LLVM IR in PruneEH tests
Modified:
llvm/trunk/test/Transforms/PruneEH/recursivetest.ll
llvm/trunk/test/Transforms/PruneEH/simpletest.ll
Modified: llvm/trunk/test/Transforms/PruneEH/recursivetest.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/PruneEH/recursivetest.ll?rev=228786&r1=228785&r2=228786&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/PruneEH/recursivetest.ll (original)
+++ llvm/trunk/test/Transforms/PruneEH/recursivetest.ll Tue Feb 10 20:06:47 2015
@@ -6,6 +6,8 @@ define internal i32 @foo() {
Normal: ; preds = %0
ret i32 12
Except: ; preds = %0
+ landingpad { i8*, i32 } personality i32 (...)* @__gxx_personality_v0
+ catch i8* null
ret i32 123
}
@@ -15,6 +17,9 @@ define i32 @caller() {
Normal: ; preds = %0
ret i32 0
Except: ; preds = %0
+ landingpad { i8*, i32 } personality i32 (...)* @__gxx_personality_v0
+ catch i8* null
ret i32 1
}
+declare i32 @__gxx_personality_v0(...)
Modified: llvm/trunk/test/Transforms/PruneEH/simpletest.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/PruneEH/simpletest.ll?rev=228786&r1=228785&r2=228786&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/PruneEH/simpletest.ll (original)
+++ llvm/trunk/test/Transforms/PruneEH/simpletest.ll Tue Feb 10 20:06:47 2015
@@ -15,5 +15,9 @@ Normal: ; preds = %0
ret i32 0
Except: ; preds = %0
+ landingpad { i8*, i32 } personality i32 (...)* @__gxx_personality_v0
+ catch i8* null
ret i32 1
}
+
+declare i32 @__gxx_personality_v0(...)
More information about the llvm-commits
mailing list