forked from OSchip/llvm-project
NFC: [Debugify] Fix a typo when checking variables in the original mode
This commit is contained in:
parent
09b67aa1c3
commit
f8dfc35256
|
@ -457,14 +457,14 @@ static bool checkInstructions(const DebugInstMap &DILocsBefore,
|
||||||
}
|
}
|
||||||
|
|
||||||
// This checks the preservation of original debug variable intrinsics.
|
// This checks the preservation of original debug variable intrinsics.
|
||||||
static bool checkVars(const DebugVarMap &DIFunctionsBefore,
|
static bool checkVars(const DebugVarMap &DIVarsBefore,
|
||||||
const DebugVarMap &DIFunctionsAfter,
|
const DebugVarMap &DIVarsAfter,
|
||||||
StringRef NameOfWrappedPass, StringRef FileNameFromCU,
|
StringRef NameOfWrappedPass, StringRef FileNameFromCU,
|
||||||
bool ShouldWriteIntoJSON, llvm::json::Array &Bugs) {
|
bool ShouldWriteIntoJSON, llvm::json::Array &Bugs) {
|
||||||
bool Preserved = true;
|
bool Preserved = true;
|
||||||
for (const auto &V : DIFunctionsBefore) {
|
for (const auto &V : DIVarsBefore) {
|
||||||
auto VarIt = DIFunctionsAfter.find(V.first);
|
auto VarIt = DIVarsAfter.find(V.first);
|
||||||
if (VarIt == DIFunctionsAfter.end())
|
if (VarIt == DIVarsAfter.end())
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
unsigned NumOfDbgValsAfter = VarIt->second;
|
unsigned NumOfDbgValsAfter = VarIt->second;
|
||||||
|
|
Loading…
Reference in New Issue