From 3f287c26bf68684ff97e804ef3b2e70fcdbde04d Mon Sep 17 00:00:00 2001 From: Denis Zobnin Date: Fri, 29 Apr 2016 22:50:16 +0000 Subject: [PATCH] [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 --- clang/lib/Sema/SemaAttr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/lib/Sema/SemaAttr.cpp b/clang/lib/Sema/SemaAttr.cpp index 7387b66..8933399 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. // -- 2.7.4