Skip to content

Commit efbffe4

Browse files
committed
use new function names
1 parent 9a42448 commit efbffe4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

llvm/lib/Transforms/Utils/CloneFunction.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ void llvm::mapAtomInstance(const DebugLoc &DL, ValueToValueMapTy &VMap) {
5555
return;
5656

5757
// Map entry to a new atom group.
58-
uint64_t NewGroup = DL->getContext().incNextAtomGroup();
58+
uint64_t NewGroup = DL->getContext().incNextDILocationAtomGroup();
5959
assert(NewGroup > CurGroup && "Next should always be greater than current");
6060
It->second = NewGroup;
6161

llvm/unittests/IR/MetadataTest.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1753,12 +1753,12 @@ TEST_F(DILocationTest, KeyInstructions) {
17531753
EXPECT_EQ(Context.pImpl->NextAtomGroup, 6u);
17541754

17551755
// Check the waterline gets incremented by 1.
1756-
EXPECT_EQ(Context.incNextAtomGroup(), 6u);
1756+
EXPECT_EQ(Context.incNextDILocationAtomGroup(), 6u);
17571757
EXPECT_EQ(Context.pImpl->NextAtomGroup, 7u);
17581758

1759-
Context.updateAtomGroupWaterline(8);
1759+
Context.updateDILocationAtomGroupWaterline(8);
17601760
EXPECT_EQ(Context.pImpl->NextAtomGroup, 8u);
1761-
Context.updateAtomGroupWaterline(7);
1761+
Context.updateDILocationAtomGroupWaterline(7);
17621762
EXPECT_EQ(Context.pImpl->NextAtomGroup, 8u);
17631763
}
17641764

0 commit comments

Comments
 (0)