projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
67448a8
)
[StackSafety,NFC] Fix comment
author
Vitaly Buka
<vitalybuka@google.com>
Fri, 19 Jun 2020 10:10:01 +0000
(
03:10
-0700)
committer
Vitaly Buka
<vitalybuka@google.com>
Fri, 19 Jun 2020 10:11:13 +0000
(
03:11
-0700)
llvm/lib/Analysis/StackLifetime.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Analysis/StackLifetime.cpp
b/llvm/lib/Analysis/StackLifetime.cpp
index
9c8347f
..
dae3527
100644
(file)
--- 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) {