We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 572bb10 commit 3177894Copy full SHA for 3177894
llvm/lib/Transforms/IPO/MSVCMacroRebuilding.cpp
@@ -29,6 +29,8 @@ bool MSVCMacroRebuildingPass::replace__FUNCTION__(std::string &RegexStr,
29
30
// Get the original string value of the constant data array.
31
std::string OriginalStr = CDA->getAsCString().str();
32
+ if (OriginalStr.empty())
33
+ return false;
34
35
// Check the marker name.
36
if (OriginalStr.find(
0 commit comments