Get rid of the pesky -Woverloaded-virtual warning. No change in functionality.
authorEli Bendersky <eliben@google.com>
Tue, 18 Dec 2012 18:21:29 +0000 (18:21 +0000)
committerEli Bendersky <eliben@google.com>
Tue, 18 Dec 2012 18:21:29 +0000 (18:21 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@170438 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/MSP430/MSP430ISelLowering.cpp
lib/Target/MSP430/MSP430ISelLowering.h

index 8a1bd0958b54f38c1991847ce36d068a40313e04..1808dcfd5d618a62ed4c324b32188295dc792c66 100644 (file)
@@ -1063,6 +1063,10 @@ bool MSP430TargetLowering::isZExtFree(EVT VT1, EVT VT2) const {
   return 0 && VT1 == MVT::i8 && VT2 == MVT::i16;
 }
 
+bool MSP430TargetLowering::isZExtFree(SDValue Val, EVT VT2) const {
+  return isZExtFree(Val.getValueType(), VT2);
+}
+
 //===----------------------------------------------------------------------===//
 //  Other Lowering Code
 //===----------------------------------------------------------------------===//
index bf021eaac5f5d02385b7017fca8798270920042b..ab4e64e921f65a543573034f86753acbd11fb19c 100644 (file)
@@ -116,6 +116,7 @@ namespace llvm {
     /// out to 16 bits.
     virtual bool isZExtFree(Type *Ty1, Type *Ty2) const;
     virtual bool isZExtFree(EVT VT1, EVT VT2) const;
+    virtual bool isZExtFree(SDValue Val, EVT VT2) const;
 
     MachineBasicBlock* EmitInstrWithCustomInserter(MachineInstr *MI,
                                                    MachineBasicBlock *BB) const;