[llvm] 0e1bdea - [StackSafety,NFC] Fix comment
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 19 03:11:23 PDT 2020
Author: Vitaly Buka
Date: 2020-06-19T03:11:13-07:00
New Revision: 0e1bdeafc9cae2ed3151cebd0da5a1c85dd060ce
URL: https://github.com/llvm/llvm-project/commit/0e1bdeafc9cae2ed3151cebd0da5a1c85dd060ce
DIFF: https://github.com/llvm/llvm-project/commit/0e1bdeafc9cae2ed3151cebd0da5a1c85dd060ce.diff
LOG: [StackSafety,NFC] Fix comment
Added:
Modified:
llvm/lib/Analysis/StackLifetime.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Analysis/StackLifetime.cpp b/llvm/lib/Analysis/StackLifetime.cpp
index 9c8347f9837f..dae352719641 100644
--- a/llvm/lib/Analysis/StackLifetime.cpp
+++ b/llvm/lib/Analysis/StackLifetime.cpp
@@ -52,7 +52,7 @@ bool StackLifetime::isAliveAfter(const AllocaInst *AI,
auto ItBB = BlockInstRange.find(BB);
assert(ItBB != BlockInstRange.end() && "Unreachable is not expected");
- // Find the first instruction after the V.
+ // Search the block for the first instruction following 'I'.
auto It = std::upper_bound(Instructions.begin() + ItBB->getSecond().first + 1,
Instructions.begin() + ItBB->getSecond().second, I,
[](const Instruction *L, const Instruction *R) {
More information about the llvm-commits
mailing list