[llvm-commits] [llvm] r118623 - /llvm/trunk/lib/Analysis/CaptureTracking.cpp

Dan Gohman gohman at apple.com
Tue Nov 9 12:09:35 PST 2010


Author: djg
Date: Tue Nov  9 14:09:35 2010
New Revision: 118623

URL: http://llvm.org/viewvc/llvm-project?rev=118623&view=rev
Log:
VAArg doesn't capture its operand.

Modified:
    llvm/trunk/lib/Analysis/CaptureTracking.cpp

Modified: llvm/trunk/lib/Analysis/CaptureTracking.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/CaptureTracking.cpp?rev=118623&r1=118622&r2=118623&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/CaptureTracking.cpp (original)
+++ llvm/trunk/lib/Analysis/CaptureTracking.cpp Tue Nov  9 14:09:35 2010
@@ -95,6 +95,9 @@
     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;





More information about the llvm-commits mailing list