mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-12 17:32:19 +00:00
VAArg doesn't capture its operand.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118623 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9423f63365
commit
1cdaa3e5b1
@ -95,6 +95,9 @@ bool llvm::PointerMayBeCaptured(const Value *V,
|
||||
case Instruction::Load:
|
||||
// Loading from a pointer does not cause it to be captured.
|
||||
break;
|
||||
case Instruction::VAArg:
|
||||
// "va-arg" from a pointer does not cause it to be captured.
|
||||
break;
|
||||
case Instruction::Ret:
|
||||
if (ReturnCaptures)
|
||||
return true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user