forked from OSchip/llvm-project
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:
parent
e733b80f3c
commit
b61235739f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue