[clang] d3c10a3 - [CodeGen] Use llvm::reverse (NFC) (#133550)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Mar 28 19:55:35 PDT 2025
Author: Kazu Hirata
Date: 2025-03-28T19:55:32-07:00
New Revision: d3c10a3897ccd060090ca273de4cedb91cd2d605
URL: https://github.com/llvm/llvm-project/commit/d3c10a3897ccd060090ca273de4cedb91cd2d605
DIFF: https://github.com/llvm/llvm-project/commit/d3c10a3897ccd060090ca273de4cedb91cd2d605.diff
LOG: [CodeGen] Use llvm::reverse (NFC) (#133550)
Added:
Modified:
clang/lib/CodeGen/CGCall.cpp
Removed:
################################################################################
diff --git a/clang/lib/CodeGen/CGCall.cpp b/clang/lib/CodeGen/CGCall.cpp
index 7aa77e55dbfcc..3a1db4f1a7a90 100644
--- a/clang/lib/CodeGen/CGCall.cpp
+++ b/clang/lib/CodeGen/CGCall.cpp
@@ -3633,7 +3633,7 @@ static llvm::StoreInst *findDominatingStoreToReturnValue(CodeGenFunction &CGF) {
// Look at directly preceding instruction, skipping bitcasts, lifetime
// markers, and fake uses and their operands.
const llvm::Instruction *LoadIntoFakeUse = nullptr;
- for (llvm::Instruction &I : make_range(IP->rbegin(), IP->rend())) {
+ for (llvm::Instruction &I : llvm::reverse(*IP)) {
// Ignore instructions that are just loads for fake uses; the load should
// immediately precede the fake use, so we only need to remember the
// operand for the last fake use seen.
More information about the cfe-commits
mailing list