[CodeGen][typeid] Emit typeinfo directly if type is known at compile-time
authorZequan Wu <zequanwu@google.com>
Mon, 14 Sep 2020 17:57:23 +0000 (10:57 -0700)
committerZequan Wu <zequanwu@google.com>
Tue, 15 Sep 2020 19:15:47 +0000 (12:15 -0700)
commitf975ae4867d1fdfaba11a3ec7e479da8fbfd82d8
treedcb2763958d849939749d9d017cf604141abb119
parent69f98311ca42127df92527b6fc3be99841a15f12
[CodeGen][typeid] Emit typeinfo directly if type is known at compile-time

Differential Revision: https://reviews.llvm.org/D87425
clang/include/clang/AST/ExprCXX.h
clang/lib/AST/ExprCXX.cpp
clang/lib/CodeGen/CGExprCXX.cpp
clang/test/CodeGenCXX/microsoft-abi-typeid.cpp