]> granicus.if.org Git - clang/commit
Use LLVM's preferred current_path API instead of calling getcwd(3) directly.
authorBenjamin Kramer <benny.kra@googlemail.com>
Sat, 27 Apr 2013 08:12:29 +0000 (08:12 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Sat, 27 Apr 2013 08:12:29 +0000 (08:12 +0000)
commit6089adc7310e5e70ac42b5d942344cddb8a48f55
tree0588d295dcd3e78e0c4817d227b6278bbfffb920
parent7c993747da28138cadb40fd0b34587cf3a9be499
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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@180669 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Driver/Tools.cpp