Trim some unneeded fields.
[oota-llvm.git] / include / llvm / SymbolTableListTraits.h
index 205b409e8eb23b332a40e01daa425e57c9fd4894..a78d27f6e87cfeea9c2783efd17bae9ea9120104 100644 (file)
@@ -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(); }