Index: lib/Support/FoldingSet.cpp =================================================================== --- lib/Support/FoldingSet.cpp +++ lib/Support/FoldingSet.cpp @@ -54,8 +54,7 @@ // depend on the host. It doesn't matter, however, because hashing on // pointer values is inherently unstable. Nothing should depend on the // ordering of nodes in the folding set. - Bits.append(reinterpret_cast(&Ptr), - reinterpret_cast(&Ptr+1)); + AddInteger((unsigned long)Ptr); } void FoldingSetNodeID::AddInteger(signed I) { Bits.push_back(I);