From: Chandler Carruth Date: Sun, 1 Feb 2015 13:21:04 +0000 (+0000) Subject: [multiversion] Remove another place we were "handling" nullptr even X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=7b1ef137a288931fede5f76991d78df70fcd82da;p=oota-llvm.git [multiversion] Remove another place we were "handling" nullptr even though it was never a reasonable input. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227736 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/CodeGen/BasicTTIImpl.h b/include/llvm/CodeGen/BasicTTIImpl.h index 616e39f9688..2b9ee6b7db3 100644 --- a/include/llvm/CodeGen/BasicTTIImpl.h +++ b/include/llvm/CodeGen/BasicTTIImpl.h @@ -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.