[opt][NewPM] Fix typo

From https://reviews.llvm.org/D84872.
This commit is contained in:
Arthur Eubanks 2020-07-29 14:13:08 -07:00
parent 486acf841a
commit 490b642e95

View File

@ -505,7 +505,7 @@ static bool IsCodegenPass(StringRef Pass) {
for (const auto &P : PassNameContain)
if (Pass.contains(P))
return true;
for (const auto &P : PassNamePrefix)
for (const auto &P : PassNameExact)
if (Pass == P)
return true;
return false;