[llvm-commits] [llvm] r151355 - /llvm/trunk/lib/CodeGen/ScheduleDAGInstrs.h
Nick Lewycky
nicholas at mxc.ca
Thu Feb 23 23:59:05 PST 2012
Author: nicholas
Date: Fri Feb 24 01:59:05 2012
New Revision: 151355
URL: http://llvm.org/viewvc/llvm-project?rev=151355&view=rev
Log:
ScheduleDAGInstrs.h:155: warning: suggest parentheses around `&&' within `||'.
Modified:
llvm/trunk/lib/CodeGen/ScheduleDAGInstrs.h
Modified: llvm/trunk/lib/CodeGen/ScheduleDAGInstrs.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/ScheduleDAGInstrs.h?rev=151355&r1=151354&r2=151355&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/ScheduleDAGInstrs.h (original)
+++ llvm/trunk/lib/CodeGen/ScheduleDAGInstrs.h Fri Feb 24 01:59:05 2012
@@ -152,7 +152,7 @@
/// 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];
}
More information about the llvm-commits
mailing list