We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f90247 commit 67ec7f0Copy full SHA for 67ec7f0
llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp
@@ -1578,7 +1578,7 @@ class DwarfDebug : public Dwarf {
1578
void AddSourceLine(DIE *Die, const DIGlobal *G) {
1579
unsigned FileID = 0;
1580
unsigned Line = G->getLineNumber();
1581
- if (G->getVersion() < LLVMDebugVersion6) {
+ if (G->getVersion() <= LLVMDebugVersion6) {
1582
// Version6 or earlier. Use compile unit info to get file id.
1583
CompileUnit *Unit = FindCompileUnit(G->getCompileUnit());
1584
FileID = Unit->getID();
0 commit comments