--- lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp	17 Sep 2002 07:25:15 -0000	1.3
+++ lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp	17 Sep 2002 14:37:13 -0000
@@ -471,9 +471,9 @@
           if (opType == MachineOperand::MO_VirtualRegister)
             {
               constantThatMustBeLoaded = true;
-              opValue = isSigned
-                ? ConstantSInt::get(Type::LongTy, immedValue)
-                : ConstantUInt::get(Type::ULongTy, (uint64_t) immedValue);
+              opValue = (isSigned
+		? static_cast<Value*>(ConstantSInt::get(Type::LongTy, immedValue))
+                : static_cast<Value*>(ConstantUInt::get(Type::ULongTy, (uint64_t) immedValue)));
             }
         }
 
