Skip to content
  • Douglas Gregor's avatar
    When given unsaved files in clang_createTranslationUnitFromSourceFile, · 89a56c56
    Douglas Gregor authored
    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
    89a56c56
Loading