diff options
author | Chris Lattner <sabre@nondot.org> | 2003-07-23 15:17:51 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-07-23 15:17:51 +0000 |
commit | 79f22fe02fe354c50fc4d6a1c08a894fdd847dba (patch) | |
tree | 2e9d63a1f95159cf4b4f1e61077ec8fe098f1143 /llvm | |
parent | 3bc9b251b9feac09de9c5016efb4a6b13aca113b (diff) | |
download | bcm5719-llvm-79f22fe02fe354c50fc4d6a1c08a894fdd847dba.tar.gz bcm5719-llvm-79f22fe02fe354c50fc4d6a1c08a894fdd847dba.zip |
Remove unnecessary casts
llvm-svn: 7250
Diffstat (limited to 'llvm')
-rw-r--r-- | llvm/lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp b/llvm/lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp index 6c1c860d2c6..22320130f4b 100644 --- a/llvm/lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp +++ b/llvm/lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp @@ -103,12 +103,12 @@ ChooseRegOrImmed(Value* val, if (isa<PointerType>(CPV->getType())) intValue = 0; // We checked above that it is NULL else if (ConstantBool* CB = dyn_cast<ConstantBool>(CPV)) - intValue = (int64_t) CB->getValue(); + intValue = CB->getValue(); else if (CPV->getType()->isSigned()) intValue = cast<ConstantSInt>(CPV)->getValue(); else { // get the int value and sign-extend if original was less than 64 bits - intValue = (int64_t) cast<ConstantUInt>(CPV)->getValue(); + intValue = cast<ConstantUInt>(CPV)->getValue(); switch(CPV->getType()->getPrimitiveID()) { case Type::UByteTyID: intValue = (int64_t) (int8_t) intValue; break; |