Fix #1333: Protect against -g for non-generating code.
This commit is contained in:
parent
a89f8cf76b
commit
7f0bcfd8d8
2 changed files with 4 additions and 1 deletions
|
|
@ -619,7 +619,7 @@ public:
|
|||
return semanticNameSet.insert(name).first->c_str();
|
||||
}
|
||||
|
||||
void setSourceFile(const char* file) { sourceFile = file; }
|
||||
void setSourceFile(const char* file) { if (file != nullptr) sourceFile = file; }
|
||||
const std::string& getSourceFile() const { return sourceFile; }
|
||||
void addSourceText(const char* text) { sourceText = sourceText + text; }
|
||||
const std::string& getSourceText() const { return sourceText; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue