[multiversion] Remove another place we were "handling" nullptr even
authorChandler Carruth <chandlerc@gmail.com>
Sun, 1 Feb 2015 13:21:04 +0000 (13:21 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Sun, 1 Feb 2015 13:21:04 +0000 (13:21 +0000)
though it was never a reasonable input.

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

include/llvm/CodeGen/BasicTTIImpl.h

index 616e39f96887772e4b8e70c0735a708be1de1fb4..2b9ee6b7db31949e0103949fee6dd2d0cab35b04 100644 (file)
@@ -77,8 +77,8 @@ private:
 protected:
   const TargetMachine *TM;
 
-  explicit BasicTTIImplBase(const TargetMachine *TM = nullptr)
-      : BaseT(TM ? TM->getDataLayout() : nullptr), TM(TM) {}
+  explicit BasicTTIImplBase(const TargetMachine *TM)
+      : BaseT(TM->getDataLayout()), TM(TM) {}
 
 public:
   // Provide value semantics. MSVC requires that we spell all of these out.