From 7b1ef137a288931fede5f76991d78df70fcd82da Mon Sep 17 00:00:00 2001 From: Chandler Carruth Date: Sun, 1 Feb 2015 13:21:04 +0000 Subject: [PATCH] [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 --- include/llvm/CodeGen/BasicTTIImpl.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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. -- 2.34.1