aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZhongxing Xu <xuzhongxing@foxmail.com>2011-06-03 08:29:51 +0000
committerZhongxing Xu <xuzhongxing@foxmail.com>2011-06-03 08:29:51 +0000
commit422b62b4079b49553a5e8bc793d4413494e221d7 (patch)
tree44d7b4d878ab1033878cdc135c94da6bf4624663
parentb2afe8759dbbed1d74da361ef0db1a4aaafefdb3 (diff)
downloadexternal_llvm-422b62b4079b49553a5e8bc793d4413494e221d7.zip
external_llvm-422b62b4079b49553a5e8bc793d4413494e221d7.tar.gz
external_llvm-422b62b4079b49553a5e8bc793d4413494e221d7.tar.bz2
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
-rw-r--r--lib/Support/FoldingSet.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Support/FoldingSet.cpp b/lib/Support/FoldingSet.cpp
index d2e35b8..1568342 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));
}