mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-19 00:14:20 +00:00
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
This commit is contained in:
parent
1fedd5ae6c
commit
282072869e
@ -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
|
||||
|
@ -95,6 +95,8 @@ public:
|
||||
virtual Instruction *clone() const { return new FreeInst(Operands[0]); }
|
||||
|
||||
virtual const char *getOpcodeName() const { return "free"; }
|
||||
|
||||
virtual bool hasSideEffects() const { return true; }
|
||||
};
|
||||
|
||||
|
||||
@ -155,6 +157,8 @@ public:
|
||||
const string &Name = "");
|
||||
virtual Instruction *clone() const { return new StoreInst(*this); }
|
||||
virtual const char *getOpcodeName() const { return "store"; }
|
||||
|
||||
virtual bool hasSideEffects() const { return true; }
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user