From 9c569f48a0fe2d674323d00b892ffb07090854b5 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 23 Jul 2003 15:17:51 +0000 Subject: [PATCH] Remove unnecessary casts llvm-svn: 7250 --- 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 6c1c860d2c6..22320130f4b 100644 --- a/lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp +++ b/lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp @@ -103,12 +103,12 @@ ChooseRegOrImmed(Value* val, if (isa(CPV->getType())) intValue = 0; // We checked above that it is NULL else if (ConstantBool* CB = dyn_cast(CPV)) - intValue = (int64_t) CB->getValue(); + intValue = CB->getValue(); else if (CPV->getType()->isSigned()) intValue = cast(CPV)->getValue(); else { // get the int value and sign-extend if original was less than 64 bits - intValue = (int64_t) cast(CPV)->getValue(); + intValue = cast(CPV)->getValue(); switch(CPV->getType()->getPrimitiveID()) { case Type::UByteTyID: intValue = (int64_t) (int8_t) intValue; break;