summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/BasicAliasAnalysis.cpp
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
commit1b94d420aec57c2931731e7f76fd28d112e810e4 (patch)
tree39e33b64edf5c81b6714ad179aa033ab35174011 /llvm/lib/Analysis/BasicAliasAnalysis.cpp
parent65774916bd1f217dc30b5f8b55ab6307e1ae4774 (diff)
downloadbcm5719-llvm-1b94d420aec57c2931731e7f76fd28d112e810e4.tar.gz
bcm5719-llvm-1b94d420aec57c2931731e7f76fd28d112e810e4.zip
add a comment
llvm-svn: 62436
Diffstat (limited to 'llvm/lib/Analysis/BasicAliasAnalysis.cpp')
-rw-r--r--llvm/lib/Analysis/BasicAliasAnalysis.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Analysis/BasicAliasAnalysis.cpp b/llvm/lib/Analysis/BasicAliasAnalysis.cpp
index aac9e2d95c3..9cefdcf40dc 100644
--- a/llvm/lib/Analysis/BasicAliasAnalysis.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud