Fixed compilation errors on VC++.
authorHartmut Kaiser <hartmut.kaiser@gmail.com>
Wed, 7 Nov 2007 19:33:31 +0000 (19:33 +0000)
committerHartmut Kaiser <hartmut.kaiser@gmail.com>
Wed, 7 Nov 2007 19:33:31 +0000 (19:33 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43836 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Target/TargetLowering.h

index e8f8c12ac62556435938c7320c1d58d8f298ec08..79af960c9cc90c76775906fce072448a22bb25cc 100644 (file)
@@ -848,6 +848,7 @@ public:
 
   virtual const TargetSubtarget *getSubtarget() {
     assert(0 && "Not Implemented");
+    return NULL;    // this is here to silence compiler errors
   }
   //===--------------------------------------------------------------------===//
   // Lowering methods - These methods must be implemented by targets so that
@@ -891,6 +892,7 @@ public:
                                       SDOperand Source, unsigned Size,
                                       unsigned Align, SelectionDAG &DAG) {
     assert(0 && "Not Implemented");
+    return SDOperand();   // this is here to silence compiler errors
   }