mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
Eliminate major source of VC++ "possible loss of data" warnings.
llvm-svn: 21215
This commit is contained in:
parent
32163963cb
commit
4ac4db487c
@ -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…
Reference in New Issue
Block a user