diff options
| author | Chris Lattner <sabre@nondot.org> | 2009-06-11 17:54:56 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2009-06-11 17:54:56 +0000 |
| commit | 61797e329101dbbe1230a9b094f8cf71a770bf33 (patch) | |
| tree | 02950bec2a96449a331d5d2ac4dff5cf3c83ceb3 /llvm/test | |
| parent | 5dce37298f49f76b9514df81b9d7e56b56b1fe18 (diff) | |
| download | bcm5719-llvm-61797e329101dbbe1230a9b094f8cf71a770bf33.tar.gz bcm5719-llvm-61797e329101dbbe1230a9b094f8cf71a770bf33.zip | |
Fix 4366: store to null in non-default addr space should not be
turned into unreachable.
llvm-svn: 73195
Diffstat (limited to 'llvm/test')
| -rw-r--r-- | llvm/test/Transforms/InstCombine/2009-06-11-StoreAddrSpace.ll | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/test/Transforms/InstCombine/2009-06-11-StoreAddrSpace.ll b/llvm/test/Transforms/InstCombine/2009-06-11-StoreAddrSpace.ll new file mode 100644 index 00000000000..e86fed3c364 --- /dev/null +++ b/llvm/test/Transforms/InstCombine/2009-06-11-StoreAddrSpace.ll @@ -0,0 +1,7 @@ +; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep store +; PR4366 + +define void @a() { + store i32 0, i32 addrspace(1)* null + ret void +} |

