aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Basic/SourceManager.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-02-27 01:32:48 +0000
committerDouglas Gregor <dgregor@apple.com>2010-02-27 01:32:48 +0000
commit89a56c561f7ea5970167695e86e2eaf4e0155d55 (patch)
tree36c628482b47e89a3e1d53874d0f222efbec1ea2 /clang/lib/Basic/SourceManager.cpp
parente7179e8b76e6133242b3bcecd7a5b8c2bfe83907 (diff)
downloadllvm-89a56c561f7ea5970167695e86e2eaf4e0155d55.zip
llvm-89a56c561f7ea5970167695e86e2eaf4e0155d55.tar.gz
llvm-89a56c561f7ea5970167695e86e2eaf4e0155d55.tar.bz2
When given unsaved files in clang_createTranslationUnitFromSourceFile,
copy the source buffers provided rather than referencing them directly, so that the caller can free those buffers immediately after calling clang_createTranslationUnitFromSourceFile(). Otherwise, we risk hitting those buffers later (when building source ranges, forming diagnostics, etc.). llvm-svn: 97296
Diffstat (limited to 'clang/lib/Basic/SourceManager.cpp')
0 files changed, 0 insertions, 0 deletions