summaryrefslogtreecommitdiff
path: root/lib/Analysis
diff options
context:
space:
mode:
authorGabor Greif <ggreif@gmail.com>2009-01-18 00:27:21 +0000
committerGabor Greif <ggreif@gmail.com>2009-01-18 00:27:21 +0000
commit7f85bb6f83440382ed5154f2a7ba7756acda6160 (patch)
tree24562bceaa8df3f97a3fbd77a584c714a606ceb0 /lib/Analysis
parent7f2e381b565701d9856ac75d9a90454eed57547c (diff)
downloadllvm-7f85bb6f83440382ed5154f2a7ba7756acda6160.tar.gz
llvm-7f85bb6f83440382ed5154f2a7ba7756acda6160.tar.bz2
llvm-7f85bb6f83440382ed5154f2a7ba7756acda6160.tar.xz
add a comment
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62436 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis')
-rw-r--r--lib/Analysis/BasicAliasAnalysis.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Analysis/BasicAliasAnalysis.cpp b/lib/Analysis/BasicAliasAnalysis.cpp
index aac9e2d95c..9cefdcf40d 100644
--- a/lib/Analysis/BasicAliasAnalysis.cpp
+++ b/lib/Analysis/BasicAliasAnalysis.cpp
@@ -73,6 +73,7 @@ static bool AddressMightEscape(const Value *V) {
case Instruction::Invoke:
// If the argument to the call has the nocapture attribute, then the call
// may store or load to the pointer, but it cannot escape.
+ // Do compensate for the two BB operands, i.e. Arg1 is at index 3!
if (cast<InvokeInst>(I)->paramHasAttr(UI.getOperandNo()-2,
Attribute::NoCapture))
continue;