Better version of isIntImmediate.

llvm-svn: 22848
This commit is contained in:
Jim Laskey 2005-08-18 00:15:15 +00:00
parent 2a1f2df82a
commit 04160c6d8d
1 changed files with 1 additions and 1 deletions

View File

@ -177,7 +177,7 @@ static bool isIntImmediate(SDOperand N, unsigned& Imm) {
// test for constant
if (ConstantSDNode *CN = dyn_cast<ConstantSDNode>(N)) {
// retrieve value
Imm = (unsigned)CN->getSignExtended();
Imm = (unsigned)CN->getValue();
// passes muster
return true;
}