summaryrefslogtreecommitdiff
path: root/lib/CodeGen/ScheduleDAGInstrs.h
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2012-02-24 07:59:05 +0000
committerNick Lewycky <nicholas@mxc.ca>2012-02-24 07:59:05 +0000
commitaaad5f2b9a86982c3bc5198d404a1a8c850521cd (patch)
tree952df8b002fc7b147699727393dd955570918582 /lib/CodeGen/ScheduleDAGInstrs.h
parent702d489a959b202ab06ce4bafa0bcb1fbfd2c3e4 (diff)
downloadllvm-aaad5f2b9a86982c3bc5198d404a1a8c850521cd.tar.gz
llvm-aaad5f2b9a86982c3bc5198d404a1a8c850521cd.tar.bz2
llvm-aaad5f2b9a86982c3bc5198d404a1a8c850521cd.tar.xz
ScheduleDAGInstrs.h:155: warning: suggest parentheses around `&&' within `||'.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151355 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/ScheduleDAGInstrs.h')
-rw-r--r--lib/CodeGen/ScheduleDAGInstrs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/ScheduleDAGInstrs.h b/lib/CodeGen/ScheduleDAGInstrs.h
index 1a9d1ea578..c7ffed96b7 100644
--- a/lib/CodeGen/ScheduleDAGInstrs.h
+++ b/lib/CodeGen/ScheduleDAGInstrs.h
@@ -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];
}