aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Support
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2009-09-06 12:56:52 +0000
committerDuncan Sands <baldrick@free.fr>2009-09-06 12:56:52 +0000
commitdc94fb91bc0e3dba99c31b3b7f3b8e5048b0e137 (patch)
treeee4b39eeb994427f8087f9ddc48033c404191fda /include/llvm/Support
parent05db668fe21feee223e19fe50ddeb6456ddebafb (diff)
downloadexternal_llvm-dc94fb91bc0e3dba99c31b3b7f3b8e5048b0e137.zip
external_llvm-dc94fb91bc0e3dba99c31b3b7f3b8e5048b0e137.tar.gz
external_llvm-dc94fb91bc0e3dba99c31b3b7f3b8e5048b0e137.tar.bz2
Mark more constants unsigned, as warned about by icc (#68).
Patch by Erick Tryzelaar. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81116 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support')
-rw-r--r--include/llvm/Support/PatternMatch.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Support/PatternMatch.h b/include/llvm/Support/PatternMatch.h
index f085b0f..eb393ac 100644
--- a/include/llvm/Support/PatternMatch.h
+++ b/include/llvm/Support/PatternMatch.h
@@ -58,7 +58,7 @@ struct constantint_ty {
if (const ConstantInt *CI = dyn_cast<ConstantInt>(V)) {
const APInt &CIV = CI->getValue();
if (Val >= 0)
- return CIV == Val;
+ return CIV == static_cast<uint64_t>(Val);
// If Val is negative, and CI is shorter than it, truncate to the right
// number of bits. If it is larger, then we have to sign extend. Just
// compare their negated values.