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 | 6089adc7310e5e70ac42b5d942344cddb8a48f55 (patch) | |
tree | 0588d295dcd3e78e0c4817d227b6278bbfffb920 /lib/Sema/DeclSpec.cpp | |
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
Diffstat (limited to 'lib/Sema/DeclSpec.cpp')
0 files changed, 0 insertions, 0 deletions