Skip to content

Commit 1353653

Browse files
committed
fix unittest
1 parent efbffe4 commit 1353653

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/unittests/IR/MetadataTest.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1552,9 +1552,9 @@ TEST_F(DILocationTest, Merge) {
15521552
auto *A = DILocation::get(Context, 1, 1, F, I, false, /*AtomGroup*/ 1,
15531553
/*AtomRank*/ 2);
15541554
auto *B = DILocation::get(Context, 1, 1, F, I, false, /*AtomGroup*/ 2,
1555-
/*AtomRank*/ 1);
1555+
/*AtomRank*/ 2);
15561556
auto *M = DILocation::getMergedLocation(A, B);
1557-
EXPECT_ATOM(M, 2u, /*AtomRank*/ 1u);
1557+
EXPECT_ATOM(M, /*AtomGroup*/ 1u, /*AtomRank*/ 2u);
15581558
EXPECT_EQ(M, DILocation::getMergedLocation(B, A));
15591559

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

0 commit comments

Comments
 (0)