aboutsummaryrefslogtreecommitdiff
path: root/test/Sema/format-strings.c
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
commitc8dfe5ece04e683106eb96c58a2999f70b53ac21 (patch)
tree0042003e927d0563cd605faf6d398542cb50a7c1 /test/Sema/format-strings.c
parent5fe8c04009eff540ebaa0cceb2e75c3908322e11 (diff)
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.). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97296 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Sema/format-strings.c')
0 files changed, 0 insertions, 0 deletions