summaryrefslogtreecommitdiff
path: root/test/Transforms/InstCombine/crash.ll
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-12-20 08:36:38 +0000
committerChris Lattner <sabre@nondot.org>2010-12-20 08:36:38 +0000
commit2b9375e44b0e99ce23d2cef8de78f66347eef88a (patch)
tree1274f2fa61836bfb8117b71e673320e38aaa2874 /test/Transforms/InstCombine/crash.ll
parentab215bc371677cdeac6eacb3e890e5af666d1ab4 (diff)
downloadllvm-2b9375e44b0e99ce23d2cef8de78f66347eef88a.tar.gz
llvm-2b9375e44b0e99ce23d2cef8de78f66347eef88a.tar.bz2
llvm-2b9375e44b0e99ce23d2cef8de78f66347eef88a.tar.xz
fix PR8807 by making transformConstExprCastCall aware of byval arguments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122238 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/InstCombine/crash.ll')
-rw-r--r--test/Transforms/InstCombine/crash.ll13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/crash.ll b/test/Transforms/InstCombine/crash.ll
index a600af0da7..deb7277c5e 100644
--- a/test/Transforms/InstCombine/crash.ll
+++ b/test/Transforms/InstCombine/crash.ll
@@ -285,3 +285,16 @@ entry:
store i32 %19, i32* undef, align 8
unreachable
}
+
+
+; PR8807
+declare i32 @test14f(i8* (i8*)*) nounwind
+
+define void @test14() nounwind readnone {
+entry:
+ %tmp = bitcast i32 (i8* (i8*)*)* @test14f to i32 (i32*)*
+ %call10 = call i32 %tmp(i32* byval undef)
+ ret void
+}
+
+