Skip to content

Commit 3b07f30

Browse files
author
Lu, John
committed
Use preferred Users.end()
Signed-off-by: Lu, John <[email protected]>
1 parent 9dedea2 commit 3b07f30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/SYCLLowerIR/MutatePrintfAddrspace.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ Value *stripToMemorySource(Value *V) {
162162
Value *LoadSource = LI->getPointerOperand();
163163
auto Users = LoadSource->users();
164164
auto I = llvm::find_if(Users, [](User *U) { return isa<StoreInst>(U); });
165-
if (I!=std::end(Users)) {
165+
if (I!=Users.end()) {
166166
auto *Store = cast<StoreInst>(*I);
167167
MemoryAccess = Store->getValueOperand();
168168
}

0 commit comments

Comments
 (0)