mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-19 04:28:20 +00:00
add a comment
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62436 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -73,6 +73,7 @@ static bool AddressMightEscape(const Value *V) {
|
|||||||
case Instruction::Invoke:
|
case Instruction::Invoke:
|
||||||
// If the argument to the call has the nocapture attribute, then the call
|
// If the argument to the call has the nocapture attribute, then the call
|
||||||
// may store or load to the pointer, but it cannot escape.
|
// 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,
|
if (cast<InvokeInst>(I)->paramHasAttr(UI.getOperandNo()-2,
|
||||||
Attribute::NoCapture))
|
Attribute::NoCapture))
|
||||||
continue;
|
continue;
|
||||||
|
Reference in New Issue
Block a user