From 282072869ebb503782ed57ead93df7a7ad72290e Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 9 Jul 2001 19:38:26 +0000 Subject: hasSideEffects should be marked virtual stores and free's have sideeffects git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@170 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Instruction.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/llvm/Instruction.h') diff --git a/include/llvm/Instruction.h b/include/llvm/Instruction.h index 031730a..25be14f 100644 --- a/include/llvm/Instruction.h +++ b/include/llvm/Instruction.h @@ -39,7 +39,7 @@ public: // inline const BasicBlock *getParent() const { return Parent; } inline BasicBlock *getParent() { return Parent; } - bool hasSideEffects() const { return false; } // Memory & Call insts = true + virtual bool hasSideEffects() const { return false; } // Memory & Call insts // --------------------------------------------------------------------------- // Subclass classification... getInstType() returns a member of -- cgit v1.1