Add support for GCC 2.96
authorChris Lattner <sabre@nondot.org>
Tue, 17 Sep 2002 17:23:09 +0000 (17:23 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 17 Sep 2002 17:23:09 +0000 (17:23 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3777 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp
lib/Target/SparcV9/InstrSelection/InstrSelectionSupport.cpp

index 3a85dbe70cbf1bfc40c003d51b686e5583c60ac9..508c0b6e5e04c366a638812033a7e7c97a121d62 100644 (file)
@@ -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);
             }
         }
 
index 3a85dbe70cbf1bfc40c003d51b686e5583c60ac9..508c0b6e5e04c366a638812033a7e7c97a121d62 100644 (file)
@@ -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);
             }
         }