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 {
|
||||
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");
|
||||
|
Loading…
Reference in New Issue
Block a user