]> granicus.if.org Git - clang/commit
Correct UnaryTransformTypeLoc to properly initialize.
authorErich Keane <erich.keane@intel.com>
Thu, 14 Dec 2017 23:37:08 +0000 (23:37 +0000)
committerErich Keane <erich.keane@intel.com>
Thu, 14 Dec 2017 23:37:08 +0000 (23:37 +0000)
commit2d8dad1d7c666548d7c63a3d4baeecd2ad5805d3
tree67b5edd3ed81da2d8b4e53ad1623f4a8b94976f6
parent618519b96f4b9028bba07066b271c1cd368186c6
Correct UnaryTransformTypeLoc to properly initialize.

The initializeLocal function of UnaryTransformTypeLoc missed
the UnderlyingTInfo member.  This caused a null-dereference
issue, as reported in PR23421. This patch correctly initializss
the UnderlyingTInfo.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@320765 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/TypeLoc.h
lib/AST/TypeLoc.cpp
test/SemaCXX/underlying_type.cpp