forked from OSchip/llvm-project
parent
ee4cf81d9a
commit
4ac39ef6f9
|
@ -340,6 +340,8 @@ llvm::Value * CodeGenFunction::EmitCXXTypeidExpr(const CXXTypeidExpr *E) {
|
|||
const llvm::Type *LTy = ConvertType(Ty)->getPointerTo();
|
||||
if (E->isTypeOperand()) {
|
||||
QualType Ty = E->getTypeOperand();
|
||||
CanQualType CanTy = CGM.getContext().getCanonicalType(Ty);
|
||||
Ty = CanTy.getUnqualifiedType().getNonReferenceType();
|
||||
if (const RecordType *RT = Ty->getAs<RecordType>()) {
|
||||
const CXXRecordDecl *RD = cast<CXXRecordDecl>(RT->getDecl());
|
||||
if (RD->isPolymorphic())
|
||||
|
|
Loading…
Reference in New Issue