[llvm-commits] CVS: llvm/include/llvm/CodeGen/MachineInstr.h
Jeff Cohen
jeffc at jolt-lang.org
Sun Apr 10 20:38:39 PDT 2005
Changes in directory llvm/include/llvm/CodeGen:
MachineInstr.h updated: 1.159 -> 1.160
---
Log message:
Eliminate major source of VC++ "possible loss of data" warnings.
---
Diffs of the changes: (+2 -2)
MachineInstr.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Index: llvm/include/llvm/CodeGen/MachineInstr.h
diff -u llvm/include/llvm/CodeGen/MachineInstr.h:1.159 llvm/include/llvm/CodeGen/MachineInstr.h:1.160
--- llvm/include/llvm/CodeGen/MachineInstr.h:1.159 Sun Apr 10 04:18:55 2005
+++ llvm/include/llvm/CodeGen/MachineInstr.h Sun Apr 10 22:38:28 2005
@@ -275,11 +275,11 @@
}
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");
More information about the llvm-commits
mailing list