summaryrefslogtreecommitdiff
path: root/include/llvm/Instruction.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-07-09 19:38:26 +0000
committerChris Lattner <sabre@nondot.org>2001-07-09 19:38:26 +0000
commit282072869ebb503782ed57ead93df7a7ad72290e (patch)
tree64c37eeeba13cde556e5167682f69fbdb3bab006 /include/llvm/Instruction.h
parent1fedd5ae6c556bf4199f11658f72f85a7d4b3740 (diff)
downloadllvm-282072869ebb503782ed57ead93df7a7ad72290e.tar.gz
llvm-282072869ebb503782ed57ead93df7a7ad72290e.tar.bz2
llvm-282072869ebb503782ed57ead93df7a7ad72290e.tar.xz
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
Diffstat (limited to 'include/llvm/Instruction.h')
-rw-r--r--include/llvm/Instruction.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Instruction.h b/include/llvm/Instruction.h
index 031730a975..25be14fbd2 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