Skip to content
Snippets Groups Projects
Commit 12b29f31 authored by Denis Zobnin's avatar Denis Zobnin
Browse files

[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.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@268129 91177308-0d34-0410-b5e6-96231b3b80d8
parent 6432c739
No related branches found
No related tags found
No related merge requests found
......@@ -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.
//
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment