summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-11-05 04:50:59 +0000
committerChris Lattner <sabre@nondot.org>2004-11-05 04:50:59 +0000
commit141e3fd81d7362cb82a86782425c7057c449b2dc (patch)
tree095503a29f52d519ca2dd26c67df1b4594a09ebd /utils
parent41ffe4b5313fe9c25a2aa91f01a9824d22c5351e (diff)
downloadexternal_llvm-141e3fd81d7362cb82a86782425c7057c449b2dc.zip
external_llvm-141e3fd81d7362cb82a86782425c7057c449b2dc.tar.gz
external_llvm-141e3fd81d7362cb82a86782425c7057c449b2dc.tar.bz2
Quiet VC++ warnings
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17484 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r--utils/TableGen/InstrSelectorEmitter.cpp2
-rw-r--r--utils/TableGen/Record.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/utils/TableGen/InstrSelectorEmitter.cpp b/utils/TableGen/InstrSelectorEmitter.cpp
index 9a2ce4a..e9c6344 100644
--- a/utils/TableGen/InstrSelectorEmitter.cpp
+++ b/utils/TableGen/InstrSelectorEmitter.cpp
@@ -344,7 +344,7 @@ bool Pattern::InferTypes(TreePatternNode *N, bool &MadeChange) {
break;
}
- return AnyUnset | N->getType() == MVT::Other;
+ return AnyUnset | (N->getType() == MVT::Other);
}
/// clone - This method is used to make an exact copy of the current pattern,
diff --git a/utils/TableGen/Record.cpp b/utils/TableGen/Record.cpp
index 38e1dff..8c8e7b9 100644
--- a/utils/TableGen/Record.cpp
+++ b/utils/TableGen/Record.cpp
@@ -67,7 +67,7 @@ Init *BitsRecTy::convertValue(IntInit *II) {
if (Value & ~((1LL << Size)-1))
return 0;
} else {
- if ((Value >> Size) != -1 || ((Value & (1 << Size-1)) == 0))
+ if ((Value >> Size) != -1 || ((Value & (1 << (Size-1))) == 0))
return 0;
}