aboutsummaryrefslogtreecommitdiffstats
path: root/utils/TableGen/Record.cpp
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2009-05-15 03:07:14 +0000
committerNick Lewycky <nicholas@mxc.ca>2009-05-15 03:07:14 +0000
commit45aaa6d93c522b7c125586e1b7b3464ed4275ac7 (patch)
treefc0714767afb5355a53c0bb0022af394bcd31d8f /utils/TableGen/Record.cpp
parent1db2ebdba0c15a5656da4807534c692b158ab169 (diff)
downloadexternal_llvm-45aaa6d93c522b7c125586e1b7b3464ed4275ac7.zip
external_llvm-45aaa6d93c522b7c125586e1b7b3464ed4275ac7.tar.gz
external_llvm-45aaa6d93c522b7c125586e1b7b3464ed4275ac7.tar.bz2
Fix warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71834 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/Record.cpp')
-rw-r--r--utils/TableGen/Record.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/TableGen/Record.cpp b/utils/TableGen/Record.cpp
index fc2de1c..45804b9 100644
--- a/utils/TableGen/Record.cpp
+++ b/utils/TableGen/Record.cpp
@@ -791,7 +791,7 @@ static Init *ForeachHelper(Init *LHS, Init *MHS, Init *RHS, RecTy *Type,
assert(0 && "No typed variable for !foreach");
}
- if (MHSd && DagType || MHSl && ListType) {
+ if ((MHSd && DagType) || (MHSl && ListType)) {
if (MHSd) {
Init *Val = MHSd->getOperator();
Init *Result = EvaluateOperation(RHSo, LHS, Val,