From c64b64a2044b6c01a42cb35c94b440f799b1340d Mon Sep 17 00:00:00 2001 From: Andrew Lenharth Date: Sun, 19 Jun 2005 14:46:20 +0000 Subject: [PATCH] fix DCE + va_arg problem git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22264 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Instructions.h | 1 + 1 file changed, 1 insertion(+) 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; }