diff options
| author | Douglas Gregor <dgregor@apple.com> | 2010-02-27 01:32:48 +0000 |
|---|---|---|
| committer | Douglas Gregor <dgregor@apple.com> | 2010-02-27 01:32:48 +0000 |
| commit | 89a56c561f7ea5970167695e86e2eaf4e0155d55 (patch) | |
| tree | 36c628482b47e89a3e1d53874d0f222efbec1ea2 /clang/lib/CodeGen/CGVTT.cpp | |
| parent | e7179e8b76e6133242b3bcecd7a5b8c2bfe83907 (diff) | |
| download | bcm5719-llvm-89a56c561f7ea5970167695e86e2eaf4e0155d55.tar.gz bcm5719-llvm-89a56c561f7ea5970167695e86e2eaf4e0155d55.zip | |
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/CodeGen/CGVTT.cpp')
0 files changed, 0 insertions, 0 deletions

