diff options
author | dim <dim@FreeBSD.org> | 2011-11-19 18:01:14 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2011-11-19 18:01:14 +0000 |
commit | fa09afd40854d77a65ec9873200b7baa27629790 (patch) | |
tree | b00e59f52ffd11cd97c8a6b6494b94bc69eb8915 /contrib/llvm/tools/clang/lib/Serialization/ASTWriter.cpp | |
parent | 91c9f9c59de212075e0866994bd4d631eade390f (diff) | |
download | FreeBSD-src-fa09afd40854d77a65ec9873200b7baa27629790.zip FreeBSD-src-fa09afd40854d77a65ec9873200b7baa27629790.tar.gz |
Pull in r144505 from upstream clang trunk:
Fix the signature of the getcontext builtin, eliminating incorrect
warnings about its prototype.
This also adds a -W(no-)builtin-requires-header option, which can be
used to enable or disable warnings of this kind.
MFC after: 1 week
Diffstat (limited to 'contrib/llvm/tools/clang/lib/Serialization/ASTWriter.cpp')
-rw-r--r-- | contrib/llvm/tools/clang/lib/Serialization/ASTWriter.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/llvm/tools/clang/lib/Serialization/ASTWriter.cpp b/contrib/llvm/tools/clang/lib/Serialization/ASTWriter.cpp index b31262d..a1645d7 100644 --- a/contrib/llvm/tools/clang/lib/Serialization/ASTWriter.cpp +++ b/contrib/llvm/tools/clang/lib/Serialization/ASTWriter.cpp @@ -2994,6 +2994,7 @@ void ASTWriter::WriteASTCore(Sema &SemaRef, MemorizeStatCalls *StatCalls, AddTypeRef(Context.ObjCIdRedefinitionType, SpecialTypes); AddTypeRef(Context.ObjCClassRedefinitionType, SpecialTypes); AddTypeRef(Context.ObjCSelRedefinitionType, SpecialTypes); + AddTypeRef(Context.getucontext_tType(), SpecialTypes); // Keep writing types and declarations until all types and // declarations have been written. |