add a comment
authorGabor Greif <ggreif@gmail.com>
Sun, 18 Jan 2009 00:27:21 +0000 (00:27 +0000)
committerGabor Greif <ggreif@gmail.com>
Sun, 18 Jan 2009 00:27:21 +0000 (00:27 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62436 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/BasicAliasAnalysis.cpp

index aac9e2d95c3749a185ca2c602b8f7901033f0e64..9cefdcf40dcfcf5e5f20dffa75203a7903e5a8bc 100644 (file)
@@ -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;