VAArg doesn't capture its operand.
authorDan Gohman <gohman@apple.com>
Tue, 9 Nov 2010 20:09:35 +0000 (20:09 +0000)
committerDan Gohman <gohman@apple.com>
Tue, 9 Nov 2010 20:09:35 +0000 (20:09 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118623 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/CaptureTracking.cpp

index 90eae20858fb9546d5f2564436d7ab7b059880bd..42a54d9d1eb3adba766363cf2ef38765a12055b9 100644 (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;