No REALLY, get rid of ConstantPointer references
authorChris Lattner <sabre@nondot.org>
Mon, 17 Nov 2003 19:21:04 +0000 (19:21 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 17 Nov 2003 19:21:04 +0000 (19:21 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10054 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/ConstantFold.cpp

index 0b1b12335207d67629e777ad2810befa382bab2d..5e7bd0296590e97d8ba7d915fabf1524c72760e0 100644 (file)
@@ -395,7 +395,7 @@ struct BoolRules : public TemplateRules<ConstantBool, BoolRules> {
 // NullPointerRules provides a concrete base class of ConstRules for null
 // pointers.
 //
-struct NullPointerRules : public TemplateRules<ConstantPointer,
+struct NullPointerRules : public TemplateRules<ConstantPointerNull,
                                                NullPointerRules> {
   static ConstantBool *CastToBool  (const Constant *V) {
     return ConstantBool::False;
@@ -431,7 +431,7 @@ struct NullPointerRules : public TemplateRules<ConstantPointer,
     return ConstantFP::get(Type::DoubleTy, 0);
   }
 
-  static Constant *CastToPointer(const ConstantPointer *V,
+  static Constant *CastToPointer(const ConstantPointerNull *V,
                                  const PointerType *PTy) {
     return ConstantPointerNull::get(PTy);
   }