mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-09 13:33:17 +00:00
Eliminate major source of VC++ "possible loss of data" warnings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21215 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c7c16575fe
commit
3bdfdfd10f
@ -275,11 +275,11 @@ public:
|
|||||||
}
|
}
|
||||||
int getFrameIndex() const {
|
int getFrameIndex() const {
|
||||||
assert(isFrameIndex() && "Wrong MachineOperand accessor");
|
assert(isFrameIndex() && "Wrong MachineOperand accessor");
|
||||||
return contents.immedVal;
|
return (int)contents.immedVal;
|
||||||
}
|
}
|
||||||
unsigned getConstantPoolIndex() const {
|
unsigned getConstantPoolIndex() const {
|
||||||
assert(isConstantPoolIndex() && "Wrong MachineOperand accessor");
|
assert(isConstantPoolIndex() && "Wrong MachineOperand accessor");
|
||||||
return contents.immedVal;
|
return (unsigned)contents.immedVal;
|
||||||
}
|
}
|
||||||
GlobalValue *getGlobal() const {
|
GlobalValue *getGlobal() const {
|
||||||
assert(isGlobalAddress() && "Wrong MachineOperand accessor");
|
assert(isGlobalAddress() && "Wrong MachineOperand accessor");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user