From: Chris Lattner Date: Sun, 23 Sep 2007 23:53:07 +0000 (+0000) Subject: Fix for 64-bit systems. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=031b2d21fe1b0ad8c8fd927f654353035ed06562;p=clang Fix for 64-bit systems. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42253 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Analysis/DataflowValues.h b/include/clang/Analysis/DataflowValues.h index 95ee094153..1d778645b2 100644 --- a/include/clang/Analysis/DataflowValues.h +++ b/include/clang/Analysis/DataflowValues.h @@ -37,10 +37,10 @@ namespace llvm { static unsigned getHashValue(const clang::CFG::Edge& E) { const clang::CFGBlock* P1 = E.getSrc(); const clang::CFGBlock* P2 = E.getDst(); - return (reinterpret_cast(P1) >> 4) ^ - (reinterpret_cast(P1) >> 9) ^ - (reinterpret_cast(P2) >> 5) ^ - (reinterpret_cast(P2) >> 10); + return static_cast((reinterpret_cast(P1) >> 4) ^ + (reinterpret_cast(P1) >> 9) ^ + (reinterpret_cast(P2) >> 5) ^ + (reinterpret_cast(P2) >> 10)); } static bool isEqual(const clang::CFG::Edge& LHS,