Skip to content

Commit e2cd46e

Browse files
committed
Update MSVCMacroRebuilding.cpp
1 parent 4e8cc7c commit e2cd46e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

llvm/lib/Transforms/IPO/MSVCMacroRebuilding.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,8 @@ bool MSVCMacroRebuildingPass::replace__FUNCTION__(std::string &RegexStr,
3131
std::string OriginalStr = CDA->getAsCString().str();
3232
// Replace the macro marker and file name in the original string with
3333
// the name of the function containing the instruction.
34-
std::string ReplacedStr =
35-
std::regex_replace(OriginalStr, std::regex(RegexStr),
36-
demangleGetFunctionName(FunctionName.str()));
34+
std::string ReplacedStr = std::regex_replace(
35+
OriginalStr, std::regex(RegexStr), demangleGetFunctionName(FunctionName));
3736

3837
// If the replaced string is the same as the original string, skip the
3938
// variable.

0 commit comments

Comments
 (0)