You've already forked llvm-project
mirror of
https://github.com/encounter/llvm-project.git
synced 2026-03-30 11:27:19 -07:00
VAArg doesn't capture its operand.
llvm-svn: 118623
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user