diff options
Diffstat (limited to 'lib/DebugInfo/DWARFDebugLine.cpp')
-rw-r--r-- | lib/DebugInfo/DWARFDebugLine.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/DebugInfo/DWARFDebugLine.cpp b/lib/DebugInfo/DWARFDebugLine.cpp index 941d8813d5..94fff6533e 100644 --- a/lib/DebugInfo/DWARFDebugLine.cpp +++ b/lib/DebugInfo/DWARFDebugLine.cpp @@ -122,7 +122,9 @@ DWARFDebugLine::getOrParseLineTable(DataExtractor debug_line_data, State state; if (!parseStatementTable(debug_line_data, &offset, state)) return 0; - pos->second = state; + // FIXME: double lookup. + LineTableMap[offset] = state; + return &LineTableMap[offset]; } return &pos->second; } |