diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-05-06 22:51:12 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-05-06 22:51:12 +0000 |
commit | 538ef562bd3212f3638f7f03638c456924dc4adc (patch) | |
tree | 7f5a0a5e224bd58fbfdfc6a0e3ad2026e89f5012 /llvm/lib/Bitcode | |
parent | 27483915e8dd94301f8154a225973931e31f201e (diff) | |
download | bcm5719-llvm-538ef562bd3212f3638f7f03638c456924dc4adc.tar.gz bcm5719-llvm-538ef562bd3212f3638f7f03638c456924dc4adc.zip |
Bitcode: Set LastDL after writing DebugLocs
Somehow I dropped this in r233585, and we haven't had `DEBUG_LOC_AGAIN`
records since. Add it back. Also tests that the output assembly looks
okay.
Fixes PR23436.
llvm-svn: 236661
Diffstat (limited to 'llvm/lib/Bitcode')
-rw-r--r-- | llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp index 85a6da33a6e..199663d1bfd 100644 --- a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp +++ b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp @@ -2135,6 +2135,8 @@ static void WriteFunction(const Function &F, ValueEnumerator &VE, Vals.push_back(VE.getMetadataOrNullID(DL->getInlinedAt())); Stream.EmitRecord(bitc::FUNC_CODE_DEBUG_LOC, Vals); Vals.clear(); + + LastDL = DL; } // Emit names for all the instructions etc. |