mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-10 06:24:58 +00:00
No REALLY, get rid of ConstantPointer references
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10054 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
cf09f51bb9
commit
a83a6e4276
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user