Skip to content

Commit 117387e

Browse files
committed
Update MSVCMacroRebuilding.cpp
1 parent c6592d6 commit 117387e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/lib/Transforms/IPO/MSVCMacroRebuilding.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ PreservedAnalyses MSVCMacroRebuildingPass::run(Module &M,
6767

6868
// Construct the regular expression used to match the
6969
// macro marker and the file name with escaped backslashes and line number.
70-
std::string RegexStrFor__FUNCTION__ =
70+
std::string RegexStr__FUNCTION__ =
7171
MSVCMacroRebuildingPass::get__FUNCTION__MarkerName().str() +
7272
std::regex_replace(M.getSourceFileName(), std::regex("\\\\"), "\\\\") +
7373
"\\(Line:\\d+\\)";
@@ -97,8 +97,8 @@ PreservedAnalyses MSVCMacroRebuildingPass::run(Module &M,
9797
continue;
9898

9999
// Replace '__FUNCTION__'
100-
Changed |= replace__FUNCTION__(RegexStrFor__FUNCTION__, GV, CDA,
101-
F->getName());
100+
Changed |=
101+
replace__FUNCTION__(RegexStr__FUNCTION__, GV, CDA, F->getName());
102102
}
103103
}
104104
}

0 commit comments

Comments
 (0)