]> granicus.if.org Git - llvm/commitdiff
[SystemZ] Add a wrapping with #ifndef NDEBUG to silence warning.
authorJonas Paulsson <paulsson@linux.vnet.ibm.com>
Thu, 17 Aug 2017 08:56:09 +0000 (08:56 +0000)
committerJonas Paulsson <paulsson@linux.vnet.ibm.com>
Thu, 17 Aug 2017 08:56:09 +0000 (08:56 +0000)
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

lib/Target/SystemZ/SystemZHazardRecognizer.h

index 315845669f95d6003fcb7c92c2b4f5466a8e4b4b..2105bab6afe0ac40135cefd8215aa4548e8b95e1 100644 (file)
@@ -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