Fix failing test cases with joined live intervals. It turns out that
[oota-llvm.git] / include / llvm / GlobalValue.h
index 47a2189fa4ae7e2e37241ea1e6188e887558ce97..942d9b9a4081ded2b6e951a24dfbea4943ba8d43 100644 (file)
@@ -46,7 +46,7 @@ public:
 
   /// getType - Global values are always pointers.
   inline const PointerType *getType() const {
-    return (const PointerType*)User::getType();
+    return reinterpret_cast<const PointerType*>(User::getType());
   }
 
   bool hasExternalLinkage()  const { return Linkage == ExternalLinkage; }