diff options
author | Owen Anderson <resistor@mac.com> | 2009-09-08 19:53:15 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2009-09-08 19:53:15 +0000 |
commit | 66b57f3a2a4891f05392bdffb6717326f99b9bc6 (patch) | |
tree | 3fd2217c4c89ced5ceb566ba33fc4e8b2b7570a0 /test | |
parent | c5e639c1b8eb54e0af46b3a529d0a1cac39f8ded (diff) | |
download | external_llvm-66b57f3a2a4891f05392bdffb6717326f99b9bc6.zip external_llvm-66b57f3a2a4891f05392bdffb6717326f99b9bc6.tar.gz external_llvm-66b57f3a2a4891f05392bdffb6717326f99b9bc6.tar.bz2 |
Fix PR4909, patch by Jakub Staszak.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81250 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/Transforms/Inline/PR4909.ll | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/Transforms/Inline/PR4909.ll b/test/Transforms/Inline/PR4909.ll new file mode 100644 index 0000000..48b2526 --- /dev/null +++ b/test/Transforms/Inline/PR4909.ll @@ -0,0 +1,15 @@ +; RUN: llvm-as < %s | opt -partial-inliner -disable-output + +define i32 @f() { +entry: + br label %return + +return: ; preds = %entry + ret i32 undef +} + +define i32 @g() { +entry: + %0 = call i32 @f() + ret i32 %0 +} |