Ensure Ident_GNU_final is properly initialized in the Parser Initialize function
authorDavid Majnemer <david.majnemer@gmail.com>
Fri, 29 Jul 2016 20:01:12 +0000 (20:01 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Fri, 29 Jul 2016 20:01:12 +0000 (20:01 +0000)
commita6b68bf0b91cde70e085b22bc8840df2b8db7470
tree34704ea3aec6ea83323de051c0d4da4946c66c95
parent939119dcb25ccbee61eba3e6a313a6eae3c6bb71
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
clang/lib/Parse/Parser.cpp