aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/Debugify.cpp
diff options
context:
space:
mode:
authorDjordje Todorovic <djordje.todorovic@syrmia.com>2021-09-29 04:20:15 -0700
committerDjordje Todorovic <djtodoro@cisco.com>2021-09-29 04:35:10 -0700
commitf8dfc352568a7e74d41690ac5004a50675e03d56 (patch)
treecce052da6f58d5c348a6af1870bead680f479142 /llvm/lib/Transforms/Utils/Debugify.cpp
parent09b67aa1c38279daa54246e3f216186e35a3e5b9 (diff)
downloadllvm-f8dfc352568a7e74d41690ac5004a50675e03d56.zip
llvm-f8dfc352568a7e74d41690ac5004a50675e03d56.tar.gz
llvm-f8dfc352568a7e74d41690ac5004a50675e03d56.tar.bz2
NFC: [Debugify] Fix a typo when checking variables in the original mode
Diffstat (limited to 'llvm/lib/Transforms/Utils/Debugify.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/Debugify.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/llvm/lib/Transforms/Utils/Debugify.cpp b/llvm/lib/Transforms/Utils/Debugify.cpp
index 30c3fa5..fc7083b 100644
--- a/llvm/lib/Transforms/Utils/Debugify.cpp
+++ b/llvm/lib/Transforms/Utils/Debugify.cpp
@@ -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;