summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaAttr.cpp
diff options
context:
space:
mode:
authorAlex Lorenz <arphaman@gmail.com>2017-03-31 15:36:21 +0000
committerAlex Lorenz <arphaman@gmail.com>2017-03-31 15:36:21 +0000
commit7d7e1e0218a06bcb2568e19bc53589c670dc3018 (patch)
treefcd2fc850b4a9c59d791a239eb14e3842c7cbf2e /clang/lib/Sema/SemaAttr.cpp
parent5808011bd9f9b61b93cfe82953e5a03852a86aae (diff)
downloadbcm5719-llvm-7d7e1e0218a06bcb2568e19bc53589c670dc3018.tar.gz
bcm5719-llvm-7d7e1e0218a06bcb2568e19bc53589c670dc3018.zip
[Modules][PCH] Serialize #pragma pack
This patch serializes the state of #pragma pack. It preserves the state of the pragma from a PCH/from modules in a file that uses that PCH/those modules. rdar://21359084 Differential Revision: https://reviews.llvm.org/D31241 llvm-svn: 299226
Diffstat (limited to 'clang/lib/Sema/SemaAttr.cpp')
-rw-r--r--clang/lib/Sema/SemaAttr.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Sema/SemaAttr.cpp b/clang/lib/Sema/SemaAttr.cpp
index 34744cbdd99..3ffaab23a18 100644
--- a/clang/lib/Sema/SemaAttr.cpp
+++ b/clang/lib/Sema/SemaAttr.cpp
@@ -215,6 +215,7 @@ void Sema::PragmaStack<ValueType>::Act(SourceLocation PragmaLocation,
ValueType Value) {
if (Action == PSK_Reset) {
CurrentValue = DefaultValue;
+ CurrentPragmaLocation = PragmaLocation;
return;
}
if (Action & PSK_Push)
OpenPOWER on IntegriCloud