aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Parse/Parser.cpp
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2016-07-29 20:01:12 +0000
committerDavid Majnemer <david.majnemer@gmail.com>2016-07-29 20:01:12 +0000
commita6b68bf0b91cde70e085b22bc8840df2b8db7470 (patch)
tree34704ea3aec6ea83323de051c0d4da4946c66c95 /clang/lib/Parse/Parser.cpp
parent939119dcb25ccbee61eba3e6a313a6eae3c6bb71 (diff)
downloadllvm-a6b68bf0b91cde70e085b22bc8840df2b8db7470.zip
llvm-a6b68bf0b91cde70e085b22bc8840df2b8db7470.tar.gz
llvm-a6b68bf0b91cde70e085b22bc8840df2b8db7470.tar.bz2
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
Diffstat (limited to 'clang/lib/Parse/Parser.cpp')
-rw-r--r--clang/lib/Parse/Parser.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Parse/Parser.cpp b/clang/lib/Parse/Parser.cpp
index a780ece..f442bd7 100644
--- a/clang/lib/Parse/Parser.cpp
+++ b/clang/lib/Parse/Parser.cpp
@@ -473,6 +473,7 @@ void Parser::Initialize() {
Ident_final = nullptr;
Ident_sealed = nullptr;
Ident_override = nullptr;
+ Ident_GNU_final = nullptr;
Ident_super = &PP.getIdentifierTable().get("super");