fix DCE + va_arg problem
authorAndrew Lenharth <andrewl@lenharth.org>
Sun, 19 Jun 2005 14:46:20 +0000 (14:46 +0000)
committerAndrew Lenharth <andrewl@lenharth.org>
Sun, 19 Jun 2005 14:46:20 +0000 (14:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22264 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Instructions.h

index 53cfe6ae1d439856a42447302fcebb63b4fa53fa..b1214afef3dfdc958665191f22edd7ee12b90797 100644 (file)
@@ -681,6 +681,7 @@ public:
   }
 
   virtual VAArgInst *clone() const;
+  bool mayWriteToMemory() const { return true; }
 
   // Methods for support type inquiry through isa, cast, and dyn_cast:
   static inline bool classof(const VAArgInst *) { return true; }