Skip to content

Commit 382962b

Browse files
KRM7dzhidzhoev
authored andcommitted
[GlobalISel] Fix dangling reference in CombinerHelper::matchCombineExtractedVectorLoad
1 parent 2f6bc47 commit 382962b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp

+2-3
Original file line numberDiff line numberDiff line change
@@ -1411,9 +1411,8 @@ bool CombinerHelper::matchCombineExtractedVectorLoad(
14111411

14121412
LegalityQuery::MemDesc MMDesc(*NewMMO);
14131413

1414-
LegalityQuery Q = {TargetOpcode::G_LOAD, {VecEltTy, PtrTy}, {MMDesc}};
1415-
1416-
if (!isLegalOrBeforeLegalizer(Q))
1414+
if (!isLegalOrBeforeLegalizer(
1415+
{TargetOpcode::G_LOAD, {VecEltTy, PtrTy}, {MMDesc}}))
14171416
return false;
14181417

14191418
// Load must be allowed and fast on the target.

0 commit comments

Comments
 (0)