Skip to content

Commit 3177894

Browse files
committed
Update MSVCMacroRebuilding.cpp
1 parent 572bb10 commit 3177894

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/lib/Transforms/IPO/MSVCMacroRebuilding.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ bool MSVCMacroRebuildingPass::replace__FUNCTION__(std::string &RegexStr,
2929

3030
// Get the original string value of the constant data array.
3131
std::string OriginalStr = CDA->getAsCString().str();
32+
if (OriginalStr.empty())
33+
return false;
3234

3335
// Check the marker name.
3436
if (OriginalStr.find(

0 commit comments

Comments
 (0)