Fix build after ab736a27

This class is templatized by the concrete subclass - not all subclasses have a data layout field called DL.
This commit is contained in:
Philip Reames 2022-06-25 12:09:25 -07:00 committed by Philip Reames
parent e733b80f3c
commit b61235739f
1 changed files with 1 additions and 0 deletions

View File

@ -1203,6 +1203,7 @@ public:
if (CostKind != TTI::TCK_RecipThroughput)
return Cost;
const DataLayout &DL = this->getDataLayout();
if (Src->isVectorTy() &&
// In practice it's not currently possible to have a change in lane
// length for extending loads or truncating stores so both types should