[llvm] r227736 - [multiversion] Remove another place we were "handling" nullptr even

Chandler Carruth chandlerc at gmail.com
Sun Feb 1 05:21:05 PST 2015


Author: chandlerc
Date: Sun Feb  1 07:21:04 2015
New Revision: 227736

URL: http://llvm.org/viewvc/llvm-project?rev=227736&view=rev
Log:
[multiversion] Remove another place we were "handling" nullptr even
though it was never a reasonable input.

Modified:
    llvm/trunk/include/llvm/CodeGen/BasicTTIImpl.h

Modified: llvm/trunk/include/llvm/CodeGen/BasicTTIImpl.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/BasicTTIImpl.h?rev=227736&r1=227735&r2=227736&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/BasicTTIImpl.h (original)
+++ llvm/trunk/include/llvm/CodeGen/BasicTTIImpl.h Sun Feb  1 07:21:04 2015
@@ -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.





More information about the llvm-commits mailing list