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 | 6fbfe5897c7b50fc209ceadf90b77d2de6ac5137 (patch) | |
tree | e24eefd0da36a3c3a21063f0c7af794a550dce33 /llvm/test/Transforms/JumpThreading/crash.ll | |
parent | 5e73ff2e3a34a76ddd66b6b7439c77e43e3a0658 (diff) | |
download | bcm5719-llvm-6fbfe5897c7b50fc209ceadf90b77d2de6ac5137.tar.gz bcm5719-llvm-6fbfe5897c7b50fc209ceadf90b77d2de6ac5137.zip |
fix PR6305 by handling BlockAddress in a helper function
called by jump threading.
llvm-svn: 96263
Diffstat (limited to 'llvm/test/Transforms/JumpThreading/crash.ll')
-rw-r--r-- | llvm/test/Transforms/JumpThreading/crash.ll | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/llvm/test/Transforms/JumpThreading/crash.ll b/llvm/test/Transforms/JumpThreading/crash.ll index cf292df0f71..c65fd1014be 100644 --- a/llvm/test/Transforms/JumpThreading/crash.ll +++ b/llvm/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 +} |