Should fix the dragonegg build bots.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183845
91177308-0d34-0410-b5e6-
96231b3b80d8
if (Used.compilerUsedErase(J))
Used.compilerUsedInsert(Target);
- }
-
- if (mayHaveOtherReferences(*J, Used))
+ } else if (mayHaveOtherReferences(*J, Used))
continue;
// Delete the alias.
-; RUN: opt < %s -globalopt -S | FileCheck %s
+; We use a temporary file so that the test fails when opt crashes.
+
+; RUN: opt < %s -globalopt -S > %t
+; RUN: FileCheck %s < %t
@foo1 = alias void ()* @foo2
; CHECK: @foo1 = alias void ()* @foo2
ret void
}
+
+@foo3 = alias void ()* @bar3
+; CHECK-NOT: bar3
+
+define internal void @bar3() {
+ ret void
+}
+;CHECK: define void @foo3