aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-11-17 19:21:04 +0000
committerChris Lattner <sabre@nondot.org>2003-11-17 19:21:04 +0000
commita83a6e4276fecc6123162ff96a3535f0b6e7e691 (patch)
tree8d47b463ee185fb2fa4f33e9eaa25c84dfbcd50e
parentcf09f51bb98a1658c2357f39d12d3e0ed4fa6133 (diff)
No REALLY, get rid of ConstantPointer references
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10054 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/VMCore/ConstantFold.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/VMCore/ConstantFold.cpp b/lib/VMCore/ConstantFold.cpp
index 0b1b123352..5e7bd02965 100644
--- a/lib/VMCore/ConstantFold.cpp
+++ b/lib/VMCore/ConstantFold.cpp
@@ -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);
}