ScheduleDAGInstrs.h:155: warning: suggest parentheses around `&&' within `||'.
authorNick Lewycky <nicholas@mxc.ca>
Fri, 24 Feb 2012 07:59:05 +0000 (07:59 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Fri, 24 Feb 2012 07:59:05 +0000 (07:59 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151355 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/ScheduleDAGInstrs.h

index 1a9d1ea5789708d3eebd13e66fb75b6ae34ebf5d..c7ffed96b78f8efe1eec06ce4cfc1c78bdac337e 100644 (file)
@@ -152,7 +152,7 @@ namespace llvm {
       /// Otherwise map the register and return an empty SUnits vector.
       std::vector<SUnit *> &operator[](unsigned Reg) {
         bool New = PhysRegSet.insert(Reg).second;
-        assert(!New || SUnits[Reg].empty() && "stale SUnits vector");
+        assert((!New || SUnits[Reg].empty()) && "stale SUnits vector");
         (void)New;
         return SUnits[Reg];
       }