diff options
author | Zhongxing Xu <xuzhongxing@foxmail.com> | 2011-06-03 08:29:51 +0000 |
---|---|---|
committer | Zhongxing Xu <xuzhongxing@foxmail.com> | 2011-06-03 08:29:51 +0000 |
commit | 3e4abe54702be2941ee4d84ffa8fae6f518e1ad2 (patch) | |
tree | ef2b060f98776a8b08784f0725411a0d80b7feaf /llvm/lib/Support/FoldingSet.cpp | |
parent | 79286bf251b6cc5e895b91363f3f5077905f4ce2 (diff) | |
download | bcm5719-llvm-3e4abe54702be2941ee4d84ffa8fae6f518e1ad2.tar.gz bcm5719-llvm-3e4abe54702be2941ee4d84ffa8fae6f518e1ad2.zip |
singed int causes signed extension, which contradicts the intention to pick up
integers with high 32 bits being zero.
llvm-svn: 132538
Diffstat (limited to 'llvm/lib/Support/FoldingSet.cpp')
-rw-r--r-- | llvm/lib/Support/FoldingSet.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/FoldingSet.cpp b/llvm/lib/Support/FoldingSet.cpp index d2e35b8eb67..1568342e9c9 100644 --- a/llvm/lib/Support/FoldingSet.cpp +++ b/llvm/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)); } |