We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4427f3 commit d3c10a3Copy full SHA for d3c10a3
clang/lib/CodeGen/CGCall.cpp
@@ -3633,7 +3633,7 @@ static llvm::StoreInst *findDominatingStoreToReturnValue(CodeGenFunction &CGF) {
3633
// Look at directly preceding instruction, skipping bitcasts, lifetime
3634
// markers, and fake uses and their operands.
3635
const llvm::Instruction *LoadIntoFakeUse = nullptr;
3636
- for (llvm::Instruction &I : make_range(IP->rbegin(), IP->rend())) {
+ for (llvm::Instruction &I : llvm::reverse(*IP)) {
3637
// Ignore instructions that are just loads for fake uses; the load should
3638
// immediately precede the fake use, so we only need to remember the
3639
// operand for the last fake use seen.
0 commit comments