diff options
author | Nico Weber <nicolasweber@gmx.de> | 2016-03-02 19:28:54 +0000 |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2016-03-02 19:28:54 +0000 |
commit | cbbaeb13074400ead830be88143c31e7aac3c01c (patch) | |
tree | d55d8e042104532293a3a2d729f706fb0b318111 /clang/lib/AST/ASTContext.cpp | |
parent | 65f9d9cd324fc12f8bf90fa67477e2ddd90803d6 (diff) | |
download | bcm5719-llvm-cbbaeb13074400ead830be88143c31e7aac3c01c.tar.gz bcm5719-llvm-cbbaeb13074400ead830be88143c31e7aac3c01c.zip |
Serialize `#pragma detect_mismatch`.
This is like r262493, but for pragma detect_mismatch instead of pragma comment.
The two pragmas have similar behavior, so use the same approach for both.
llvm-svn: 262506
Diffstat (limited to 'clang/lib/AST/ASTContext.cpp')
-rw-r--r-- | clang/lib/AST/ASTContext.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/AST/ASTContext.cpp b/clang/lib/AST/ASTContext.cpp index 0579bca3fe7..4c9ccd7cc98 100644 --- a/clang/lib/AST/ASTContext.cpp +++ b/clang/lib/AST/ASTContext.cpp @@ -8505,6 +8505,8 @@ bool ASTContext::DeclMustBeEmitted(const Decl *D) { return false; } else if (isa<PragmaCommentDecl>(D)) return true; + else if (isa<PragmaDetectMismatchDecl>(D)) + return true; else if (isa<OMPThreadPrivateDecl>(D)) return true; else |