Skip to content

Commit 820396c

Browse files
[Transforms] Construct SmallVector with iterator ranges (NFC) (llvm#105607)
1 parent 410f751 commit 820396c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

llvm/lib/Transforms/HipStdPar/HipStdPar.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ static inline bool checkIfSupported(GlobalVariable &G) {
8080
<< G.getName();
8181

8282
Instruction *I = nullptr;
83-
SmallVector<User *> Tmp(G.user_begin(), G.user_end());
83+
SmallVector<User *> Tmp(G.users());
8484
SmallPtrSet<User *, 5> Visited;
8585
do {
8686
auto U = std::move(Tmp.back());

llvm/lib/Transforms/IPO/AttributorAttributes.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12334,7 +12334,7 @@ struct AAIndirectCallInfoCallSite : public AAIndirectCallInfo {
1233412334
bool CBIsVoid = CB->getType()->isVoidTy();
1233512335
BasicBlock::iterator IP = CB->getIterator();
1233612336
FunctionType *CSFT = CB->getFunctionType();
12337-
SmallVector<Value *> CSArgs(CB->arg_begin(), CB->arg_end());
12337+
SmallVector<Value *> CSArgs(CB->args());
1233812338

1233912339
// If we know all callees and there are none, the call site is (effectively)
1234012340
// dead (or UB).

0 commit comments

Comments
 (0)