forked from OSchip/llvm-project
Use getPointerSizeInBits() rather than 8 * getPointerSize()
llvm-svn: 192386
This commit is contained in:
parent
f21e3ea972
commit
a98c3b1816
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue