NFC: [Debugify] Fix a typo when checking variables in the original mode

This commit is contained in:
Djordje Todorovic 2021-09-29 04:20:15 -07:00 committed by Djordje Todorovic
parent 09b67aa1c3
commit f8dfc35256
1 changed files with 5 additions and 5 deletions

View File

@ -457,14 +457,14 @@ static bool checkInstructions(const DebugInstMap &DILocsBefore,
}
// This checks the preservation of original debug variable intrinsics.
static bool checkVars(const DebugVarMap &DIFunctionsBefore,
const DebugVarMap &DIFunctionsAfter,
static bool checkVars(const DebugVarMap &DIVarsBefore,
const DebugVarMap &DIVarsAfter,
StringRef NameOfWrappedPass, StringRef FileNameFromCU,
bool ShouldWriteIntoJSON, llvm::json::Array &Bugs) {
bool Preserved = true;
for (const auto &V : DIFunctionsBefore) {
auto VarIt = DIFunctionsAfter.find(V.first);
if (VarIt == DIFunctionsAfter.end())
for (const auto &V : DIVarsBefore) {
auto VarIt = DIVarsAfter.find(V.first);
if (VarIt == DIVarsAfter.end())
continue;
unsigned NumOfDbgValsAfter = VarIt->second;