]> granicus.if.org Git - clang/commit
Support operator keywords used in Windows SDK(fix ubsan)
authorErich Keane <erich.keane@intel.com>
Fri, 9 Jun 2017 22:50:02 +0000 (22:50 +0000)
committerErich Keane <erich.keane@intel.com>
Fri, 9 Jun 2017 22:50:02 +0000 (22:50 +0000)
commit6feeb00acd06ed4183dc89e1264124d5daff6f94
treecaf7c1fdf08272c8a5668bfffd070ee4070ed547
parentbc18067b2dbf059e09e10e8b2417361857c52ba2
Support operator keywords used in Windows SDK(fix ubsan)

UBSan found an issue with a nullptr being assigned to a reference.
This was because a following function went back and checked the
identifier in the CPPOperatorName case.  This patch corrects that
location with the original logic as well.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@305128 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Lex/Preprocessor.cpp