Skip to content

Commit

Permalink
[SystemZ] Add a wrapping with #ifndef NDEBUG to silence warning.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
JonPsson committed Aug 17, 2017
1 parent 59bdb88 commit d0d758f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/Target/SystemZ/SystemZHazardRecognizer.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d0d758f

Please sign in to comment.