Conservative fix for PR17827 - don't optimize a shift + and + compare sequence where...
[oota-llvm.git] / test / Transforms / ADCE / dce_pure_invoke.ll
index bd28df2b5e75104036cd2939218b47b8c9d3ea99..8e7851804575bf73fe4481fc3983a9415a7c8afc 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | opt -adce | llvm-dis | grep null
+; RUN: opt < %s -adce -S | grep null
 
 declare i32 @strlen(i8*) readnone
 
@@ -11,5 +11,9 @@ Cont:         ; preds = %0
        ret i32 0
 
 Other:         ; preds = %0
+         %exn = landingpad {i8*, i32} personality i32 (...)* @__gxx_personality_v0
+                  cleanup
        ret i32 1
 }
+
+declare i32 @__gxx_personality_v0(...)