diff options
author | Chris Lattner <sabre@nondot.org> | 2010-02-15 20:47:49 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-02-15 20:47:49 +0000 |
commit | 37914c8e83c43d710925263b66014159f03fa355 (patch) | |
tree | 46ebaa0c7eee6d2c3f6922081b7414ae3984411b /test/Transforms/JumpThreading | |
parent | 014bf215c3457bb34fee348265e8f63a70b4d503 (diff) | |
download | llvm-37914c8e83c43d710925263b66014159f03fa355.tar.gz llvm-37914c8e83c43d710925263b66014159f03fa355.tar.bz2 llvm-37914c8e83c43d710925263b66014159f03fa355.tar.xz |
fix PR6305 by handling BlockAddress in a helper function
called by jump threading.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96263 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/JumpThreading')
-rw-r--r-- | test/Transforms/JumpThreading/crash.ll | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/Transforms/JumpThreading/crash.ll b/test/Transforms/JumpThreading/crash.ll index cf292df0f7..c65fd1014b 100644 --- a/test/Transforms/JumpThreading/crash.ll +++ b/test/Transforms/JumpThreading/crash.ll @@ -313,3 +313,14 @@ for.cond: ; preds = %for.body, %lor.end for.body: ; preds = %for.cond br label %for.cond } + + +; PR6305 +define void @test11() nounwind { +entry: + br label %A + +A: ; preds = %entry + call void undef(i64 ptrtoint (i8* blockaddress(@test11, %A) to i64)) nounwind + unreachable +} |