[llvm] r311074 - [SystemZ] Add a wrapping with #ifndef NDEBUG to silence warning.
Jonas Paulsson via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 17 01:56:09 PDT 2017
Author: jonpa
Date: Thu Aug 17 01:56:09 2017
New Revision: 311074
URL: http://llvm.org/viewvc/llvm-project?rev=311074&view=rev
Log:
[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.
Modified:
llvm/trunk/lib/Target/SystemZ/SystemZHazardRecognizer.h
Modified: llvm/trunk/lib/Target/SystemZ/SystemZHazardRecognizer.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/SystemZ/SystemZHazardRecognizer.h?rev=311074&r1=311073&r2=311074&view=diff
==============================================================================
--- llvm/trunk/lib/Target/SystemZ/SystemZHazardRecognizer.h (original)
+++ llvm/trunk/lib/Target/SystemZ/SystemZHazardRecognizer.h Thu Aug 17 01:56:09 2017
@@ -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
More information about the llvm-commits
mailing list