summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-11-09 20:09:35 +0000
committerDan Gohman <gohman@apple.com>2010-11-09 20:09:35 +0000
commit88ff1ece63c9936946b89d1237f00aeca2e6530f (patch)
treef52a766b72bd879bf67a24904ffc7795fbff2c5a /llvm/lib
parent88d5f7fd953773979f627f619af66e1e3baf2b5a (diff)
downloadbcm5719-llvm-88ff1ece63c9936946b89d1237f00aeca2e6530f.tar.gz
bcm5719-llvm-88ff1ece63c9936946b89d1237f00aeca2e6530f.zip
VAArg doesn't capture its operand.
llvm-svn: 118623
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Analysis/CaptureTracking.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Analysis/CaptureTracking.cpp b/llvm/lib/Analysis/CaptureTracking.cpp
index 90eae20858f..42a54d9d1eb 100644
--- a/llvm/lib/Analysis/CaptureTracking.cpp
+++ b/llvm/lib/Analysis/CaptureTracking.cpp
@@ -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;
OpenPOWER on IntegriCloud