[llvm-commits] CVS: llvm/lib/VMCore/ConstantHandling.cpp
Chris Lattner
lattner at cs.uiuc.edu
Mon Nov 17 13:24:22 PST 2003
Changes in directory llvm/lib/VMCore:
ConstantHandling.cpp updated: 1.39 -> 1.40
---
Log message:
No REALLY, get rid of ConstantPointer references
---
Diffs of the changes: (+2 -2)
Index: llvm/lib/VMCore/ConstantHandling.cpp
diff -u llvm/lib/VMCore/ConstantHandling.cpp:1.39 llvm/lib/VMCore/ConstantHandling.cpp:1.40
--- llvm/lib/VMCore/ConstantHandling.cpp:1.39 Mon Nov 17 13:19:32 2003
+++ llvm/lib/VMCore/ConstantHandling.cpp Mon Nov 17 13:21:04 2003
@@ -395,7 +395,7 @@
// 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 @@
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);
}
More information about the llvm-commits
mailing list