It's not necessary to do rounding for alloca operations when the requested
alignment is equal to the stack alignment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40004 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/Verifier/invoke-2.ll b/test/Verifier/invoke-2.ll
new file mode 100644
index 0000000..b3a5750
--- /dev/null
+++ b/test/Verifier/invoke-2.ll
@@ -0,0 +1,13 @@
+; RUN: not llvm-as < %s -o /dev/null -f
+; PR1042
+
+int %foo() {
+ br bool false, label %L1, label %L2
+L1:
+ %A = invoke int %foo() to label %L unwind label %L
+
+L2:
+ br label %L
+L:
+ ret int %A
+}