aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/PostRASchedulerList.cpp
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2008-11-27 17:29:52 +0000
committerNick Lewycky <nicholas@mxc.ca>2008-11-27 17:29:52 +0000
commita89d102b32d74fed5d3c7aeea8869a11c3074063 (patch)
treed06c35d8799c168726873890adc514fa1d84abf5 /lib/CodeGen/PostRASchedulerList.cpp
parent440954c64b2fea2f03362cad0bca1a9795e8b994 (diff)
Silence a warning.
Despite changing the order of evaluation, this doesn't actually change the meaning of the statement. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60177 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/PostRASchedulerList.cpp')
-rw-r--r--lib/CodeGen/PostRASchedulerList.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/PostRASchedulerList.cpp b/lib/CodeGen/PostRASchedulerList.cpp
index c30cd61f34..09125d0488 100644
--- a/lib/CodeGen/PostRASchedulerList.cpp
+++ b/lib/CodeGen/PostRASchedulerList.cpp
@@ -397,7 +397,7 @@ bool SchedulePostRATDList::BreakAntiDependencies() {
// Determine AntiDepReg's register class, if it is live and is
// consistently used within a single class.
const TargetRegisterClass *RC = AntiDepReg != 0 ? Classes[AntiDepReg] : 0;
- assert(AntiDepReg == 0 || RC != NULL &&
+ assert((AntiDepReg == 0 || RC != NULL) &&
"Register should be live if it's causing an anti-dependence!");
if (RC == reinterpret_cast<TargetRegisterClass *>(-1))
AntiDepReg = 0;