Fix warning.
authorNick Lewycky <nicholas@mxc.ca>
Fri, 15 May 2009 03:07:14 +0000 (03:07 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Fri, 15 May 2009 03:07:14 +0000 (03:07 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71834 91177308-0d34-0410-b5e6-96231b3b80d8

utils/TableGen/Record.cpp

index fc2de1c135ad379331adf4617030b8321f18db03..45804b938cb20ad6a886b946c60c18071d8ff168 100644 (file)
@@ -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,