Skip to content

Commit 89d8ba2

Browse files
committed
[TSAR, APC, Limits] Fix, trivial.
1 parent e839bc9 commit 89d8ba2

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/APC/DistributionLimits.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ bool APCDistrLimitsChecker::runOnFunction(Function& F) {
212212
LLVM_DEBUG(
213213
dbgs() << "[APC DISTRIBUTION LIMITS]: disable distribution of "
214214
<< APCArray->GetName() << " (intrinsic) ";
215-
I.print(dbgs()); dbgs() << "\n"); std::wstring MsgEn, MsgRu;
215+
I.print(dbgs()); dbgs() << "\n");
216216
toMessages(
217217
I.getDebugLoc(), *APCArray,
218218
L"disable distribution of '%s': unsupported memory access");
@@ -278,8 +278,9 @@ bool APCDistrLimitsChecker::runOnFunction(Function& F) {
278278
auto *LpStmt{cast<apc::LoopStatement>(APCLoop->loop)};
279279
assert(LpStmt && "IR-level description of a looop must not be null!");
280280
auto process = [L, &APCCtx, &toMessages](auto &Var) {
281-
if (Var.get<MD>())
282-
if (auto *APCArray{APCCtx.findArray(Var.get<MD>()->getAsMDNode())};
281+
if (Var.template get<MD>())
282+
if (auto *APCArray{
283+
APCCtx.findArray(Var.template get<MD>()->getAsMDNode())};
283284
APCArray && !APCArray->IsNotDistribute()) {
284285
LLVM_DEBUG(
285286
dbgs()

0 commit comments

Comments
 (0)