diff options
Diffstat (limited to 'include/llvm/CodeGen/InstrForest.h')
-rw-r--r-- | include/llvm/CodeGen/InstrForest.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/CodeGen/InstrForest.h b/include/llvm/CodeGen/InstrForest.h index 6fe622d..113e35e 100644 --- a/include/llvm/CodeGen/InstrForest.h +++ b/include/llvm/CodeGen/InstrForest.h @@ -171,7 +171,7 @@ public: Instruction *getInstruction() const { assert(treeNodeType == NTInstructionNode); - return (Instruction*)val; + return cast<Instruction>(val); } protected: virtual void dumpNode(int indent) const; @@ -234,7 +234,7 @@ protected: // //------------------------------------------------------------------------ -class InstrForest : private hash_map<const Instruction*, InstructionNode*> { +class InstrForest : private hash_map<const Instruction *, InstructionNode*> { private: hash_set<InstructionNode*> treeRoots; |