diff options
| author | Benjamin Kramer <benny.kra@googlemail.com> | 2013-04-27 08:12:29 +0000 |
|---|---|---|
| committer | Benjamin Kramer <benny.kra@googlemail.com> | 2013-04-27 08:12:29 +0000 |
| commit | 698d7c86f0223ac40360415e5e032449a94a06a5 (patch) | |
| tree | a85b17bb7556f663a839abfcb67193c00e57f628 /llvm/lib/Support/MemoryObject.cpp | |
| parent | b33b6cb84aa473d85397af32dde4a49d1a480c4d (diff) | |
| download | bcm5719-llvm-698d7c86f0223ac40360415e5e032449a94a06a5.tar.gz bcm5719-llvm-698d7c86f0223ac40360415e5e032449a94a06a5.zip | |
Use LLVM's preferred current_path API instead of calling getcwd(3) directly.
The existing code also failed to allocate a buffer for it so getcwd corrupted
the stack. sys::fs::current_path takes care of the memory management.
llvm-svn: 180669
Diffstat (limited to 'llvm/lib/Support/MemoryObject.cpp')
0 files changed, 0 insertions, 0 deletions

