summaryrefslogtreecommitdiffstats
path: root/llvm/lib/DebugInfo
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/DebugInfo')
-rw-r--r--llvm/lib/DebugInfo/CodeView/ModuleDebugFragmentVisitor.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/DebugInfo/CodeView/ModuleDebugFragmentVisitor.cpp b/llvm/lib/DebugInfo/CodeView/ModuleDebugFragmentVisitor.cpp
index 8db17b94997..37cd887d783 100644
--- a/llvm/lib/DebugInfo/CodeView/ModuleDebugFragmentVisitor.cpp
+++ b/llvm/lib/DebugInfo/CodeView/ModuleDebugFragmentVisitor.cpp
@@ -68,9 +68,8 @@ Error llvm::codeview::visitModuleDebugFragment(const ModuleDebugFragment &R,
const LineFragmentHeader *Header;
if (auto EC = Reader.readObject(Header))
return EC;
- VarStreamArrayExtractor<LineColumnEntry> E(Header);
- LineInfoArray LineInfos(E);
- if (auto EC = Reader.readArray(LineInfos, Reader.bytesRemaining()))
+ LineInfoArray LineInfos;
+ if (auto EC = Reader.readArray(LineInfos, Reader.bytesRemaining(), Header))
return EC;
return V.visitLines(R.getRecordData(), Header, LineInfos);
}
OpenPOWER on IntegriCloud