summaryrefslogtreecommitdiffstats
path: root/llvm/test/Assembler/invalid-landingpad.ll
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2015-03-09 07:13:42 +0000
committerOwen Anderson <resistor@mac.com>2015-03-09 07:13:42 +0000
commitf8f259df48d3af96b06b50b14cc08e7e72b028ce (patch)
tree3e610fe89b659ce693e095329c3d87f5bfd1d43c /llvm/test/Assembler/invalid-landingpad.ll
parent6e084ccda3ac4f4e817036ca2df734f3bc1133f4 (diff)
downloadbcm5719-llvm-f8f259df48d3af96b06b50b14cc08e7e72b028ce.tar.gz
bcm5719-llvm-f8f259df48d3af96b06b50b14cc08e7e72b028ce.zip
Fix a bug in the LLParser where we failed to diagnose landingpads with non-constant clause operands.
Fixing this also exposed a related issue where the landingpad under construction was not cleaned up when an error was raised, which would cause bad reference errors before the error could actually be printed. llvm-svn: 231634
Diffstat (limited to 'llvm/test/Assembler/invalid-landingpad.ll')
-rw-r--r--llvm/test/Assembler/invalid-landingpad.ll7
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/test/Assembler/invalid-landingpad.ll b/llvm/test/Assembler/invalid-landingpad.ll
new file mode 100644
index 00000000000..c8eab4ac6ae
--- /dev/null
+++ b/llvm/test/Assembler/invalid-landingpad.ll
@@ -0,0 +1,7 @@
+; RUN: not llvm-as < %s 2>&1 | FileCheck %s
+
+; CHECK: clause argument must be a constant
+
+define void @test(i32 %in) {
+ landingpad {} personality void()* null filter i32 %in
+}
OpenPOWER on IntegriCloud