From: Bjorn Pettersson Date: Thu, 9 May 2019 08:07:36 +0000 (+0000) Subject: [CodeGen] Use "DL.getPointerSizeInBits" instead of "8 * DL.getPointerSize". NFC X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b24e093ca06fd4c1f009d3ae3241c65fa3c223a1;p=llvm [CodeGen] Use "DL.getPointerSizeInBits" instead of "8 * DL.getPointerSize". NFC git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@360315 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/TargetLoweringBase.cpp b/lib/CodeGen/TargetLoweringBase.cpp index 13c75fb4ca7..661674ff50a 100644 --- a/lib/CodeGen/TargetLoweringBase.cpp +++ b/lib/CodeGen/TargetLoweringBase.cpp @@ -722,7 +722,7 @@ void TargetLoweringBase::initActions() { MVT TargetLoweringBase::getScalarShiftAmountTy(const DataLayout &DL, EVT) const { - return MVT::getIntegerVT(8 * DL.getPointerSize(0)); + return MVT::getIntegerVT(DL.getPointerSizeInBits(0)); } EVT TargetLoweringBase::getShiftAmountTy(EVT LHSTy, const DataLayout &DL,