From 3bdfdfd10f73dcf17aa3381679e9be3e08a16d78 Mon Sep 17 00:00:00 2001 From: Jeff Cohen Date: Mon, 11 Apr 2005 03:38:28 +0000 Subject: [PATCH] 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 --- include/llvm/CodeGen/MachineInstr.h | 4 ++-- 1 file 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"); -- 2.34.1