diff options
Diffstat (limited to 'lib/Analysis/BasicAliasAnalysis.cpp')
-rw-r--r-- | lib/Analysis/BasicAliasAnalysis.cpp | 1 |
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; |