[NativePDB] Fix a use after free and enable corresponding native test.
authorZachary Turner <zturner@google.com>
Wed, 19 Dec 2018 19:45:30 +0000 (19:45 +0000)
committerZachary Turner <zturner@google.com>
Wed, 19 Dec 2018 19:45:30 +0000 (19:45 +0000)
commit51f88af359dae51e79fea5bfef3904a463a6541c
tree33d25aa71a4093e68e8b53203ada45e07845489b
parente4fa9b06f334156d846b9a38aff1822a8612d9c0
[NativePDB] Fix a use after free and enable corresponding native test.

We had a use after free where we were assigning the result of a function
that returned a string to a StringRef.  After fixing this use after
free, one of the DIA PDB tests now passes with the native PDB reader,
so we enable the test under native mode as well.  The goal is to
eventually make all the tests pass under both, at which point we can
disable them all under DIA mode.

llvm-svn: 349673
lldb/lit/SymbolFile/PDB/compilands.test
lldb/source/Plugins/SymbolFile/NativePDB/SymbolFileNativePDB.cpp