From 7c1b7e5889105be4461c1f5f8583f783a0674c6b Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 17 Sep 2002 17:23:09 +0000 Subject: [PATCH] Add support for GCC 2.96 llvm-svn: 3777 --- lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp b/lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp index 3a85dbe70cb..508c0b6e5e0 100644 --- a/lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp +++ b/lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp @@ -472,8 +472,8 @@ FixConstantOperandsForInstr(Instruction* vmInstr, { constantThatMustBeLoaded = true; opValue = isSigned - ? ConstantSInt::get(Type::LongTy, immedValue) - : ConstantUInt::get(Type::ULongTy, (uint64_t) immedValue); + ? (Value*)ConstantSInt::get(Type::LongTy, immedValue) + : (Value*)ConstantUInt::get(Type::ULongTy,(uint64_t)immedValue); } }