From: Benjamin Kramer Date: Fri, 7 Jun 2013 11:23:35 +0000 (+0000) Subject: Fold variable that's only used in assert into the assert. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=041399aad5a3d93c2dc9d2b70cb9b87d4a987ece;p=oota-llvm.git Fold variable that's only used in assert into the assert. Avoids unused variable warnings in Release builds. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183512 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/PowerPC/PPCInstrInfo.cpp b/lib/Target/PowerPC/PPCInstrInfo.cpp index e2d870de04a..a3eeb209335 100644 --- a/lib/Target/PowerPC/PPCInstrInfo.cpp +++ b/lib/Target/PowerPC/PPCInstrInfo.cpp @@ -74,8 +74,7 @@ ScheduleHazardRecognizer *PPCInstrInfo::CreateTargetPostRAHazardRecognizer( // Most subtargets use a PPC970 recognizer. if (Directive != PPC::DIR_440 && Directive != PPC::DIR_A2 && Directive != PPC::DIR_E500mc && Directive != PPC::DIR_E5500) { - const TargetInstrInfo *TII = TM.getInstrInfo(); - assert(TII && "No InstrInfo?"); + assert(TM.getInstrInfo() && "No InstrInfo?"); return new PPCHazardRecognizer970(TM); }