this produces an undefined result, just check that the alloca is gone
authorChris Lattner <sabre@nondot.org>
Tue, 3 Feb 2009 18:13:00 +0000 (18:13 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 3 Feb 2009 18:13:00 +0000 (18:13 +0000)
and that sroa doesn't crash.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63637 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/ScalarRepl/2003-05-29-ArrayFail.ll

index a8a76bc53b5ed0e7640e5decc93caeb972870367..5a9f3a52c667a35a95a97076defb1875ab0957cd 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | opt -scalarrepl -instcombine | llvm-dis | grep {ret i32 undef}
+; RUN: llvm-as < %s | opt -scalarrepl -instcombine | llvm-dis | not grep alloca
 
 ; Test that an array is not incorrectly deconstructed.