1
0
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:
Jeff Cohen 2005-04-11 03:38:28 +00:00
parent 32163963cb
commit 4ac4db487c

View File

@ -275,11 +275,11 @@ public:
}
int getFrameIndex() const {
assert(isFrameIndex() && "Wrong MachineOperand accessor");
return contents.immedVal;
return (int)contents.immedVal;
}
unsigned getConstantPoolIndex() const {
assert(isConstantPoolIndex() && "Wrong MachineOperand accessor");
return contents.immedVal;
return (unsigned)contents.immedVal;
}
GlobalValue *getGlobal() const {
assert(isGlobalAddress() && "Wrong MachineOperand accessor");