commit | 6089adc7310e5e70ac42b5d942344cddb8a48f55 | [log] [tgz] |
---|---|---|
author | Benjamin Kramer <benny.kra@googlemail.com> | Sat Apr 27 08:12:29 2013 +0000 |
committer | Benjamin Kramer <benny.kra@googlemail.com> | Sat Apr 27 08:12:29 2013 +0000 |
tree | 0588d295dcd3e78e0c4817d227b6278bbfffb920 | |
parent | 7c993747da28138cadb40fd0b34587cf3a9be499 [diff] |
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