Use getPointerSizeInBits() rather than 8 * getPointerSize()

llvm-svn: 192386
This commit is contained in:
Matt Arsenault 2013-10-10 19:09:05 +00:00
parent f21e3ea972
commit a98c3b1816
1 changed files with 3 additions and 2 deletions

View File

@ -2161,8 +2161,9 @@ TargetLowering::AsmOperandInfoVector TargetLowering::ParseConstraints(
break;
}
} else if (PointerType *PT = dyn_cast<PointerType>(OpTy)) {
OpInfo.ConstraintVT = MVT::getIntegerVT(
8*getDataLayout()->getPointerSize(PT->getAddressSpace()));
unsigned PtrSize
= getDataLayout()->getPointerSizeInBits(PT->getAddressSpace());
OpInfo.ConstraintVT = MVT::getIntegerVT(PtrSize);
} else {
OpInfo.ConstraintVT = MVT::getVT(OpTy, true);
}