From b24e093ca06fd4c1f009d3ae3241c65fa3c223a1 Mon Sep 17 00:00:00 2001 From: Bjorn Pettersson Date: Thu, 9 May 2019 08:07:36 +0000 Subject: [PATCH] [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 --- lib/CodeGen/TargetLoweringBase.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- 2.50.1