VAArg doesn't capture its operand.

llvm-svn: 118623
This commit is contained in:
Dan Gohman
2010-11-09 20:09:35 +00:00
parent 88d5f7fd95
commit 88ff1ece63
+3
View File
@@ -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;