summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJeff Cohen <jeffc@jolt-lang.org>2005-04-11 03:38:28 +0000
committerJeff Cohen <jeffc@jolt-lang.org>2005-04-11 03:38:28 +0000
commit3bdfdfd10f73dcf17aa3381679e9be3e08a16d78 (patch)
tree4588058c21a79ae1698fb325a8ec4dcfc2a332c7 /include
parentc7c16575fea9aeffe8a63ddabe7c3c25f81ed799 (diff)
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
Diffstat (limited to 'include')
-rw-r--r--include/llvm/CodeGen/MachineInstr.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/CodeGen/MachineInstr.h b/include/llvm/CodeGen/MachineInstr.h
index cf35abe4a03..6a6d380fef2 100644
--- a/include/llvm/CodeGen/MachineInstr.h
+++ b/include/llvm/CodeGen/MachineInstr.h
@@ -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");