Skip to content

Commit f7eb522

Browse files
committed
[ConstantHoisting] Limit checks to assertion message.
The word "Assertion" is not necessarily present. Limit the checks to the assertion message.
1 parent 09a622b commit f7eb522

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/test/Transforms/ConstantHoisting/X86/pr52689-not-all-uses-rebased.ll

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@
1010
;
1111
; opt: ../lib/Transforms/Scalar/ConstantHoisting.cpp:919: bool llvm::ConstantHoistingPass::emitBaseConstants(llvm::GlobalVariable *): Assertion `UsesNum == (ReBasesNum + NotRebasedNum) && "Not all uses are rebased"' failed.
1212

13-
; CHECK: Assertion
14-
; CHECK-SAME: UsesNum == (ReBasesNum + NotRebasedNum)
13+
; CHECK: UsesNum == (ReBasesNum + NotRebasedNum)
1514
; CHECK-SAME: Not all uses are rebased
1615

1716
@g_77 = external global [5 x i32]

0 commit comments

Comments
 (0)