Fix PR#193.
authorJohn Criswell <criswell@uiuc.edu>
Sat, 20 Dec 2003 22:37:29 +0000 (22:37 +0000)
committerJohn Criswell <criswell@uiuc.edu>
Sat, 20 Dec 2003 22:37:29 +0000 (22:37 +0000)
commit1118d0fd945eb2430dace89b7df7b1cf60f149f3
tree7fcb915f77e0b5746fd9c515ff2d3787d4a14f06
parent3e58e48d20b85c1eeb935f7ada951865200513f5
Fix PR#193.

Modified ReadArchiveBuffer() so that it dynamically allocates the
std::string object used to hold the bytecode object file's name.  This is
necessary because it is passed by reference to the new Module that is
allocated to represent the bytecode object, and previously we were
using a std::string that disappeared on function exit.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10565 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Archive/ArchiveReader.cpp
lib/Bytecode/Archive/ArchiveReader.cpp
lib/Bytecode/Reader/ArchiveReader.cpp