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

Djordje Todorovic via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 29 04:35:35 PDT 2021


Author: Djordje Todorovic
Date: 2021-09-29T04:35:10-07:00
New Revision: f8dfc352568a7e74d41690ac5004a50675e03d56

URL: https://github.com/llvm/llvm-project/commit/f8dfc352568a7e74d41690ac5004a50675e03d56
DIFF: https://github.com/llvm/llvm-project/commit/f8dfc352568a7e74d41690ac5004a50675e03d56.diff

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

Added: 
    

Modified: 
    llvm/lib/Transforms/Utils/Debugify.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Transforms/Utils/Debugify.cpp b/llvm/lib/Transforms/Utils/Debugify.cpp
index 30c3fa521d52e..fc7083b0c30d1 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;


        


More information about the llvm-commits mailing list