[SystemZ] Make operator bool explicit. NFC.
[oota-llvm.git] / lib / Target / SystemZ / SystemZElimCompare.cpp
index 474eb9b56c3520c329238578906a4cac4d703853..ce99ee5bc41270fbabaeaf04a40f186b7f41c333 100644 (file)
@@ -47,7 +47,7 @@ struct Reference {
     return *this;
   }
 
-  operator bool() const { return Def || Use; }
+  LLVM_EXPLICIT operator bool() const { return Def || Use; }
 
   // True if the register is defined or used in some form, either directly or
   // via a sub- or super-register.
@@ -458,8 +458,7 @@ bool SystemZElimCompare::processBlock(MachineBasicBlock &MBB) {
 }
 
 bool SystemZElimCompare::runOnMachineFunction(MachineFunction &F) {
-  TII = static_cast<const SystemZInstrInfo *>(
-      F.getTarget().getSubtargetImpl()->getInstrInfo());
+  TII = static_cast<const SystemZInstrInfo *>(F.getSubtarget().getInstrInfo());
   TRI = &TII->getRegisterInfo();
 
   bool Changed = false;