Silence operator precedence warnings.
authorBenjamin Kramer <benny.kra@googlemail.com>
Wed, 14 Mar 2012 11:26:37 +0000 (11:26 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Wed, 14 Mar 2012 11:26:37 +0000 (11:26 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152711 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/MachineScheduler.cpp

index c68373ad9f2c589d0a59c867e95f075008ce5854..10a318c46dcc91bfde28bebaaa2e708c50cc76d6 100644 (file)
@@ -446,7 +446,7 @@ public:
   virtual void initialize(ScheduleDAGMI *dag) {
     DAG = dag;
 
   virtual void initialize(ScheduleDAGMI *dag) {
     DAG = dag;
 
-    assert(!ForceTopDown || !ForceBottomUp &&
+    assert((!ForceTopDown || !ForceBottomUp) &&
            "-misched-topdown incompatible with -misched-bottomup");
   }
 
            "-misched-topdown incompatible with -misched-bottomup");
   }
 
@@ -488,7 +488,7 @@ public:
 /// Create the standard converging machine scheduler. This will be used as the
 /// default scheduler if the target does not set a default.
 static ScheduleDAGInstrs *createConvergingSched(MachineSchedContext *C) {
 /// Create the standard converging machine scheduler. This will be used as the
 /// default scheduler if the target does not set a default.
 static ScheduleDAGInstrs *createConvergingSched(MachineSchedContext *C) {
-  assert(!ForceTopDown || !ForceBottomUp &&
+  assert((!ForceTopDown || !ForceBottomUp) &&
          "-misched-topdown incompatible with -misched-bottomup");
   return new ScheduleDAGMI(C, new ConvergingScheduler());
 }
          "-misched-topdown incompatible with -misched-bottomup");
   return new ScheduleDAGMI(C, new ConvergingScheduler());
 }
@@ -574,7 +574,7 @@ public:
 static ScheduleDAGInstrs *createInstructionShuffler(MachineSchedContext *C) {
   bool Alternate = !ForceTopDown && !ForceBottomUp;
   bool TopDown = !ForceBottomUp;
 static ScheduleDAGInstrs *createInstructionShuffler(MachineSchedContext *C) {
   bool Alternate = !ForceTopDown && !ForceBottomUp;
   bool TopDown = !ForceBottomUp;
-  assert(TopDown || !ForceTopDown &&
+  assert((TopDown || !ForceTopDown) &&
          "-misched-topdown incompatible with -misched-bottomup");
   return new ScheduleDAGMI(C, new InstructionShuffler(Alternate, TopDown));
 }
          "-misched-topdown incompatible with -misched-bottomup");
   return new ScheduleDAGMI(C, new InstructionShuffler(Alternate, TopDown));
 }