From 422b62b4079b49553a5e8bc793d4413494e221d7 Mon Sep 17 00:00:00 2001 From: Zhongxing Xu Date: Fri, 3 Jun 2011 08:29:51 +0000 Subject: [PATCH] singed int causes signed extension, which contradicts the intention to pick up integers with high 32 bits being zero. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132538 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Support/FoldingSet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Support/FoldingSet.cpp b/lib/Support/FoldingSet.cpp index d2e35b8eb67..1568342e9c9 100644 --- a/lib/Support/FoldingSet.cpp +++ b/lib/Support/FoldingSet.cpp @@ -92,7 +92,7 @@ void FoldingSetNodeID::AddInteger(long long I) { } void FoldingSetNodeID::AddInteger(unsigned long long I) { AddInteger(unsigned(I)); - if ((uint64_t)(int)I != I) + if ((uint64_t)(unsigned)I != I) Bits.push_back(unsigned(I >> 32)); }