From: Jonas Paulsson Date: Thu, 17 Aug 2017 08:56:09 +0000 (+0000) Subject: [SystemZ] Add a wrapping with #ifndef NDEBUG to silence warning. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d0d758f63fb3e9070ca299e13bf8334915f0a182;p=llvm [SystemZ] Add a wrapping with #ifndef NDEBUG to silence warning. SystemZHazardRecognizer::TII is only used for debug output, so it needs also to be wrapped with #ifndef NDEBUG. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@311074 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/SystemZ/SystemZHazardRecognizer.h b/lib/Target/SystemZ/SystemZHazardRecognizer.h index 315845669f9..2105bab6afe 100644 --- a/lib/Target/SystemZ/SystemZHazardRecognizer.h +++ b/lib/Target/SystemZ/SystemZHazardRecognizer.h @@ -45,7 +45,9 @@ namespace llvm { /// SystemZHazardRecognizer maintains the state for one MBB during scheduling. class SystemZHazardRecognizer : public ScheduleHazardRecognizer { +#ifndef NDEBUG const SystemZInstrInfo *TII; +#endif const TargetSchedModel *SchedModel; /// Keep track of the number of decoder slots used in the current