summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema
diff options
context:
space:
mode:
authorDenis Zobnin <d.zobnin.bugzilla@gmail.com>2016-04-29 22:50:16 +0000
committerDenis Zobnin <d.zobnin.bugzilla@gmail.com>2016-04-29 22:50:16 +0000
commit3f287c26bf68684ff97e804ef3b2e70fcdbde04d (patch)
tree67f23f0b07e77c61c440d141ca5c5d115dadb6d1 /clang/lib/Sema
parentbd61e0b4a859b1a5af3df1d9beaf3e2efe0a9a20 (diff)
downloadbcm5719-llvm-3f287c26bf68684ff97e804ef3b2e70fcdbde04d.tar.gz
bcm5719-llvm-3f287c26bf68684ff97e804ef3b2e70fcdbde04d.zip
[NFC] Initialize a variable to make buildbot green.
In r268085 "[MS] Make #pragma pack use PragmaStack<> class." there was an uninitialized variable 'Alignment', which caused the following failure: http://lab.llvm.org:8011/builders/sanitizer-ppc64be-linux/builds/1758 Zero-initialize the variable to fix this failure. llvm-svn: 268129
Diffstat (limited to 'clang/lib/Sema')
-rw-r--r--clang/lib/Sema/SemaAttr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaAttr.cpp b/clang/lib/Sema/SemaAttr.cpp
index 7387b66c0cc..8933399340d 100644
--- a/clang/lib/Sema/SemaAttr.cpp
+++ b/clang/lib/Sema/SemaAttr.cpp
@@ -78,7 +78,7 @@ void Sema::AddMsStructLayoutForRecord(RecordDecl *RD) {
void Sema::ActOnPragmaOptionsAlign(PragmaOptionsAlignKind Kind,
SourceLocation PragmaLoc) {
PragmaMsStackAction Action = Sema::PSK_Reset;
- unsigned Alignment;
+ unsigned Alignment = 0;
switch (Kind) {
// For all targets we support native and natural are the same.
//
OpenPOWER on IntegriCloud