[llvm-commits] [llvm] r60177 - /llvm/trunk/lib/CodeGen/PostRASchedulerList.cpp
Nick Lewycky
nicholas at mxc.ca
Thu Nov 27 09:29:52 PST 2008
Author: nicholas
Date: Thu Nov 27 11:29:52 2008
New Revision: 60177
URL: http://llvm.org/viewvc/llvm-project?rev=60177&view=rev
Log:
Silence a warning.
Despite changing the order of evaluation, this doesn't actually change the
meaning of the statement.
Modified:
llvm/trunk/lib/CodeGen/PostRASchedulerList.cpp
Modified: llvm/trunk/lib/CodeGen/PostRASchedulerList.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/PostRASchedulerList.cpp?rev=60177&r1=60176&r2=60177&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/PostRASchedulerList.cpp (original)
+++ llvm/trunk/lib/CodeGen/PostRASchedulerList.cpp Thu Nov 27 11:29:52 2008
@@ -397,7 +397,7 @@
// 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;
More information about the llvm-commits
mailing list