mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-24 22:24:54 +00:00
Remove unneeded cast.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@176776 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1298,7 +1298,7 @@ class ConstantPoolSDNode : public SDNode {
|
|||||||
: SDNode(isTarget ? ISD::TargetConstantPool : ISD::ConstantPool,
|
: SDNode(isTarget ? ISD::TargetConstantPool : ISD::ConstantPool,
|
||||||
DebugLoc(),
|
DebugLoc(),
|
||||||
getSDVTList(VT)), Offset(o), Alignment(Align), TargetFlags(TF) {
|
getSDVTList(VT)), Offset(o), Alignment(Align), TargetFlags(TF) {
|
||||||
assert((int)Offset >= 0 && "Offset is too large");
|
assert(Offset >= 0 && "Offset is too large");
|
||||||
Val.ConstVal = c;
|
Val.ConstVal = c;
|
||||||
}
|
}
|
||||||
ConstantPoolSDNode(bool isTarget, MachineConstantPoolValue *v,
|
ConstantPoolSDNode(bool isTarget, MachineConstantPoolValue *v,
|
||||||
@@ -1306,7 +1306,7 @@ class ConstantPoolSDNode : public SDNode {
|
|||||||
: SDNode(isTarget ? ISD::TargetConstantPool : ISD::ConstantPool,
|
: SDNode(isTarget ? ISD::TargetConstantPool : ISD::ConstantPool,
|
||||||
DebugLoc(),
|
DebugLoc(),
|
||||||
getSDVTList(VT)), Offset(o), Alignment(Align), TargetFlags(TF) {
|
getSDVTList(VT)), Offset(o), Alignment(Align), TargetFlags(TF) {
|
||||||
assert((int)Offset >= 0 && "Offset is too large");
|
assert(Offset >= 0 && "Offset is too large");
|
||||||
Val.MachineCPVal = v;
|
Val.MachineCPVal = v;
|
||||||
Offset |= 1 << (sizeof(unsigned)*CHAR_BIT-1);
|
Offset |= 1 << (sizeof(unsigned)*CHAR_BIT-1);
|
||||||
}
|
}
|
||||||
@@ -1314,7 +1314,7 @@ public:
|
|||||||
|
|
||||||
|
|
||||||
bool isMachineConstantPoolEntry() const {
|
bool isMachineConstantPoolEntry() const {
|
||||||
return (int)Offset < 0;
|
return Offset < 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
const Constant *getConstVal() const {
|
const Constant *getConstVal() const {
|
||||||
|
Reference in New Issue
Block a user