diff options
| author | Dan Gohman <gohman@apple.com> | 2010-11-09 20:09:35 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2010-11-09 20:09:35 +0000 |
| commit | 88ff1ece63c9936946b89d1237f00aeca2e6530f (patch) | |
| tree | f52a766b72bd879bf67a24904ffc7795fbff2c5a | |
| parent | 88d5f7fd953773979f627f619af66e1e3baf2b5a (diff) | |
| download | bcm5719-llvm-88ff1ece63c9936946b89d1237f00aeca2e6530f.tar.gz bcm5719-llvm-88ff1ece63c9936946b89d1237f00aeca2e6530f.zip | |
VAArg doesn't capture its operand.
llvm-svn: 118623
| -rw-r--r-- | llvm/lib/Analysis/CaptureTracking.cpp | 3 |
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; |

