diff options
Diffstat (limited to 'include/llvm/SymbolTableListTraits.h')
-rw-r--r-- | include/llvm/SymbolTableListTraits.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/SymbolTableListTraits.h b/include/llvm/SymbolTableListTraits.h index 205b409e8e..a78d27f6e8 100644 --- a/include/llvm/SymbolTableListTraits.h +++ b/include/llvm/SymbolTableListTraits.h @@ -45,7 +45,7 @@ public: /// getListOwner - Return the object that owns this list. If this is a list /// of instructions, it returns the BasicBlock that owns them. ItemParentClass *getListOwner() { - return reinterpret_cast<ItemParentClass*>((char*)this- + return reinterpret_cast<ItemParentClass*>(reinterpret_cast<char*>(this)- TraitsClass::getListOffset()); } static ValueSubClass *getPrev(ValueSubClass *V) { return V->getPrev(); } |