From 2c96bdd8d62c4e3daa0f7558c7276a40fd32599b Mon Sep 17 00:00:00 2001 From: Nick Lewycky Date: Thu, 27 Nov 2008 17:29:52 +0000 Subject: Silence a warning. Despite changing the order of evaluation, this doesn't actually change the meaning of the statement. llvm-svn: 60177 --- llvm/lib/CodeGen/PostRASchedulerList.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/CodeGen') diff --git a/llvm/lib/CodeGen/PostRASchedulerList.cpp b/llvm/lib/CodeGen/PostRASchedulerList.cpp index c30cd61f346..09125d04887 100644 --- a/llvm/lib/CodeGen/PostRASchedulerList.cpp +++ b/llvm/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(-1)) AntiDepReg = 0; -- cgit v1.2.3