mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Use getPointerSizeInBits() rather than 8 * getPointerSize()
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192386 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
89dedc1b65
commit
828c9e73ba
@ -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
Block a user