Skip to content

Commit 67ec7f0

Browse files
committed
Merge from mainline.
Code did not follow associated comment. not a good idea. llvm-svn: 63203
1 parent 7f90247 commit 67ec7f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1578,7 +1578,7 @@ class DwarfDebug : public Dwarf {
15781578
void AddSourceLine(DIE *Die, const DIGlobal *G) {
15791579
unsigned FileID = 0;
15801580
unsigned Line = G->getLineNumber();
1581-
if (G->getVersion() < LLVMDebugVersion6) {
1581+
if (G->getVersion() <= LLVMDebugVersion6) {
15821582
// Version6 or earlier. Use compile unit info to get file id.
15831583
CompileUnit *Unit = FindCompileUnit(G->getCompileUnit());
15841584
FileID = Unit->getID();

0 commit comments

Comments
 (0)