]> granicus.if.org Git - clang/commit
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)
commitc892f14b89623d6e479f8d69f30ae34a4e631417
tree37404f4e7bfc0def6ae8efff6582d8cf0db5379f
parentf4ac6a375ee86c9307e87f0459c41168a78e9d24
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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@277206 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Parse/Parser.cpp