]> granicus.if.org Git - llvm/commitdiff
[SystemZ] Also wrap TII with #ifndef NDEBUG in constructor initilizer list.
authorJonas Paulsson <paulsson@linux.vnet.ibm.com>
Thu, 17 Aug 2017 09:18:02 +0000 (09:18 +0000)
committerJonas Paulsson <paulsson@linux.vnet.ibm.com>
Thu, 17 Aug 2017 09:18:02 +0000 (09:18 +0000)
TII needs to be wrapped with #ifndef NDEBUG to silece compiler warnings.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@311075 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/SystemZ/SystemZHazardRecognizer.h

index 2105bab6afe0ac40135cefd8215aa4548e8b95e1..7e1b5fb2e4fe10218a8677e1ef226e4e3be6ed72 100644 (file)
@@ -103,9 +103,15 @@ class SystemZHazardRecognizer : public ScheduleHazardRecognizer {
 public:
   SystemZHazardRecognizer(const SystemZInstrInfo *tii,
                           const TargetSchedModel *SM)
-    : TII(tii), SchedModel(SM) { Reset(); }
+      :
+#ifndef NDEBUG
+        TII(tii),
+#endif
+        SchedModel(SM) {
+    Reset();
+  }
 
-  HazardType getHazardType(SUnit *m, int Stalls = 0) override;    
+  HazardType getHazardType(SUnit *m, int Stalls = 0) override;
   void Reset() override;
   void EmitInstruction(SUnit *SU) override;