Introduce preliminary support for NSString format-string checking.
Patch by Nikita Zhuk!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@52336 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Sema/ParseAST.cpp b/lib/Sema/ParseAST.cpp
index 67b6546..dce577b 100644
--- a/lib/Sema/ParseAST.cpp
+++ b/lib/Sema/ParseAST.cpp
@@ -39,6 +39,8 @@
PP.getIdentifierTable(), PP.getSelectorTable());
TranslationUnit TU(Context);
+ TU.SetOwnsDecls(false);
+
Sema S(PP, Context, *Consumer);
Parser P(PP, S);