diff options
author | Jeff Cohen <jeffc@jolt-lang.org> | 2005-04-11 03:38:28 +0000 |
---|---|---|
committer | Jeff Cohen <jeffc@jolt-lang.org> | 2005-04-11 03:38:28 +0000 |
commit | 3bdfdfd10f73dcf17aa3381679e9be3e08a16d78 (patch) | |
tree | 4588058c21a79ae1698fb325a8ec4dcfc2a332c7 /include/llvm/CodeGen/MachineInstr.h | |
parent | c7c16575fea9aeffe8a63ddabe7c3c25f81ed799 (diff) | |
download | external_llvm-3bdfdfd10f73dcf17aa3381679e9be3e08a16d78.zip external_llvm-3bdfdfd10f73dcf17aa3381679e9be3e08a16d78.tar.gz external_llvm-3bdfdfd10f73dcf17aa3381679e9be3e08a16d78.tar.bz2 |
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/llvm/CodeGen/MachineInstr.h')
-rw-r--r-- | include/llvm/CodeGen/MachineInstr.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/CodeGen/MachineInstr.h b/include/llvm/CodeGen/MachineInstr.h index cf35abe..6a6d380 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"); |