From: Andrew Lenharth Date: Sun, 19 Jun 2005 14:46:20 +0000 (+0000) Subject: fix DCE + va_arg problem X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=c64b64a2044b6c01a42cb35c94b440f799b1340d;p=oota-llvm.git fix DCE + va_arg problem git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22264 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Instructions.h b/include/llvm/Instructions.h index 53cfe6ae1d4..b1214afef3d 100644 --- a/include/llvm/Instructions.h +++ b/include/llvm/Instructions.h @@ -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; }