]> granicus.if.org Git - llvm/commit
PDB: Fix some APIs to avoid use-after-frees
authorJustin Bogner <mail@justinbogner.com>
Thu, 3 Nov 2016 18:28:04 +0000 (18:28 +0000)
committerJustin Bogner <mail@justinbogner.com>
Thu, 3 Nov 2016 18:28:04 +0000 (18:28 +0000)
commit1787ec76dd36ee278b2014af806a46513c047d4a
tree205f7d26f6b8785614a1cf990909d0ce064edf82
parentc771cb1243b71cd4cae912a5be6472d3b20ed23b
PDB: Fix some APIs to avoid use-after-frees

The buffer is already owned by the PDBFile for all of these APIs, so
don't pass it in separately.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@285953 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/DebugInfo/PDB/Raw/DbiStreamBuilder.h
include/llvm/DebugInfo/PDB/Raw/InfoStreamBuilder.h
include/llvm/DebugInfo/PDB/Raw/TpiStreamBuilder.h
lib/DebugInfo/PDB/Raw/DbiStreamBuilder.cpp
lib/DebugInfo/PDB/Raw/InfoStreamBuilder.cpp
lib/DebugInfo/PDB/Raw/PDBFileBuilder.cpp
lib/DebugInfo/PDB/Raw/TpiStreamBuilder.cpp