diff options
author | Greg Clayton <gclayton@apple.com> | 2013-02-28 18:09:18 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2013-02-28 18:09:18 +0000 |
commit | 7170f3fc54b611974a1deebbe0f2a26d39ea6959 (patch) | |
tree | 78caf47701bf01c2f85e0094ba66da1a9ba8180d /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | d0c6e7b0385e54384e4ab79382f2927b3bdd04af (diff) | |
download | bcm5719-llvm-7170f3fc54b611974a1deebbe0f2a26d39ea6959.tar.gz bcm5719-llvm-7170f3fc54b611974a1deebbe0f2a26d39ea6959.zip |
Made lldb.cpp build with clang 5.0.
Also removed the use of llvm::raw_string_ostream as it wasn't needed.
Also fixed a crasher that could occur when the following line returned a C string tied to a local variable:
return OS.str().c_str();
I am guessing "static std::string buf;" was supposed to get assigned to "OS.str()" and then have "buf.c_str()" returned.
Modified the non-apple version code to cache its value and not recompute the version every time.
llvm-svn: 176274
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions