]> granicus.if.org Git - clang/commit
AST: Handle qualified array types in typeid() expressions
authorDavid Majnemer <david.majnemer@gmail.com>
Fri, 27 Sep 2013 07:04:31 +0000 (07:04 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Fri, 27 Sep 2013 07:04:31 +0000 (07:04 +0000)
commitfe16aa31fdfaad4c38aed443d853af293714f1c4
tree2f789fffc7f39f617f9a68d259b1cf3c5e8ad083
parentbce8c928e888d2238523dafd670d3026e5682deb
AST: Handle qualified array types in typeid() expressions

The intent of getTypeOperand() was to yield an unqualified type.
However QualType::getUnqualifiedType() does not strip away qualifiers on
arrays.

N.B.  This worked fine when typeid() was applied to an expression
because we would inject as implicit cast to the unqualified array type
in the AST.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@191487 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/ExprCXX.h
lib/AST/ExprCXX.cpp
lib/AST/ItaniumMangle.cpp
lib/AST/StmtPrinter.cpp
lib/AST/StmtProfile.cpp
lib/CodeGen/CGExprCXX.cpp
lib/CodeGen/CGExprConstant.cpp
test/CodeGenCXX/typeid.cpp