Ensure Ident_GNU_final is properly initialized in the Parser Initialize function

The recent change implementing __final forgot to initialize a variable.
This was caught by the Memory Sanitizer.

Properly initialize the value to nullptr to ensure proper memory reads.

Patch by Erich Keane!

Differential Revision: https://reviews.llvm.org/D22970

llvm-svn: 277206
This commit is contained in:
David Majnemer 2016-07-29 20:01:12 +00:00
parent 939119dcb2
commit a6b68bf0b9
1 changed files with 1 additions and 0 deletions

View File

@ -473,6 +473,7 @@ void Parser::Initialize() {
Ident_final = nullptr; Ident_final = nullptr;
Ident_sealed = nullptr; Ident_sealed = nullptr;
Ident_override = nullptr; Ident_override = nullptr;
Ident_GNU_final = nullptr;
Ident_super = &PP.getIdentifierTable().get("super"); Ident_super = &PP.getIdentifierTable().get("super");