Skip to content

Commit 6c4caf3

Browse files
committed
fix unittest
1 parent 5feaa9c commit 6c4caf3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/unittests/IR/MetadataTest.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1575,9 +1575,9 @@ TEST_F(DILocationTest, Merge) {
15751575
auto *A = DILocation::get(Context, 1, 1, F, I, false, /*AtomGroup*/ 1,
15761576
/*AtomRank*/ 2);
15771577
auto *B = DILocation::get(Context, 1, 1, F, I, false, /*AtomGroup*/ 2,
1578-
/*AtomRank*/ 1);
1578+
/*AtomRank*/ 2);
15791579
auto *M = DILocation::getMergedLocation(A, B);
1580-
EXPECT_ATOM(M, 2u, /*AtomRank*/ 1u);
1580+
EXPECT_ATOM(M, /*AtomGroup*/ 1u, /*AtomRank*/ 2u);
15811581
EXPECT_EQ(M, DILocation::getMergedLocation(B, A));
15821582

15831583
A = DILocation::get(Context, 1, 1, F, I, false, /*AtomGroup*/ 1,

0 commit comments

Comments
 (0)