summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-09-17 17:23:09 +0000
committerChris Lattner <sabre@nondot.org>2002-09-17 17:23:09 +0000
commit82f05d86106c712097986b2563d3b66f867db8ac (patch)
tree17eec1696af99100e9381343e022fd9ca2e914dd /lib
parentc2b327768bba27cb29fecd9fdb17f261344c4871 (diff)
downloadllvm-82f05d86106c712097986b2563d3b66f867db8ac.tar.gz
llvm-82f05d86106c712097986b2563d3b66f867db8ac.tar.bz2
llvm-82f05d86106c712097986b2563d3b66f867db8ac.tar.xz
Add support for GCC 2.96
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3777 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp4
-rw-r--r--lib/Target/SparcV9/InstrSelection/InstrSelectionSupport.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp b/lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp
index 3a85dbe70c..508c0b6e5e 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);
}
}
diff --git a/lib/Target/SparcV9/InstrSelection/InstrSelectionSupport.cpp b/lib/Target/SparcV9/InstrSelection/InstrSelectionSupport.cpp
index 3a85dbe70c..508c0b6e5e 100644
--- a/lib/Target/SparcV9/InstrSelection/InstrSelectionSupport.cpp
+++ b/lib/Target/SparcV9/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);
}
}