mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Fixes for PR114: Thanks to Reid Spencer!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10029 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -113,7 +113,8 @@ public:
|
||||
case Type::LongTyID: return castToLong(V);
|
||||
case Type::FloatTyID: return castToFloat(V);
|
||||
case Type::DoubleTyID: return castToDouble(V);
|
||||
case Type::PointerTyID:return castToPointer(V, (PointerType*)Ty);
|
||||
case Type::PointerTyID:
|
||||
return castToPointer(V, reinterpret_cast<const PointerType*>(Ty));
|
||||
default: return 0;
|
||||
}
|
||||
}
|
||||
@@ -125,7 +126,7 @@ public:
|
||||
static inline ConstRules *get(const Constant &V1, const Constant &V2) {
|
||||
if (isa<ConstantExpr>(V1) || isa<ConstantExpr>(V2))
|
||||
return getConstantExprRules();
|
||||
return (ConstRules*)V1.getType()->getOrCreateAnnotation(AID);
|
||||
return static_cast<ConstRules*>(V1.getType()->getOrCreateAnnotation(AID));
|
||||
}
|
||||
private:
|
||||
static ConstRules *getConstantExprRules();
|
||||
|
Reference in New Issue
Block a user