Skip to content

Commit d3c10a3

Browse files
[CodeGen] Use llvm::reverse (NFC) (#133550)
1 parent d4427f3 commit d3c10a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/CodeGen/CGCall.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3633,7 +3633,7 @@ static llvm::StoreInst *findDominatingStoreToReturnValue(CodeGenFunction &CGF) {
36333633
// Look at directly preceding instruction, skipping bitcasts, lifetime
36343634
// markers, and fake uses and their operands.
36353635
const llvm::Instruction *LoadIntoFakeUse = nullptr;
3636-
for (llvm::Instruction &I : make_range(IP->rbegin(), IP->rend())) {
3636+
for (llvm::Instruction &I : llvm::reverse(*IP)) {
36373637
// Ignore instructions that are just loads for fake uses; the load should
36383638
// immediately precede the fake use, so we only need to remember the
36393639
// operand for the last fake use seen.

0 commit comments

Comments
 (0)