File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -922,9 +922,9 @@ bool ByteCodeExprGen<Emitter>::VisitImplicitValueInitExpr(const ImplicitValueIni
922
922
return true ;
923
923
}
924
924
925
- if (QT-> isAnyComplexType ()) {
925
+ if (const auto *ComplexTy = E-> getType ()-> getAs <ComplexType> ()) {
926
926
assert (Initializing);
927
- QualType ElemQT = QT-> getAs <ComplexType>() ->getElementType ();
927
+ QualType ElemQT = ComplexTy ->getElementType ();
928
928
PrimType ElemT = classifyPrim (ElemQT);
929
929
for (unsigned I = 0 ; I < 2 ; ++I) {
930
930
if (!this ->visitZeroInitializer (ElemT, ElemQT, E))
@@ -1098,13 +1098,13 @@ bool ByteCodeExprGen<Emitter>::VisitInitListExpr(const InitListExpr *E) {
1098
1098
return true ;
1099
1099
}
1100
1100
1101
- if (T-> isAnyComplexType ()) {
1101
+ if (const auto *ComplexTy = E-> getType ()-> getAs <ComplexType> ()) {
1102
1102
unsigned NumInits = E->getNumInits ();
1103
1103
1104
1104
if (NumInits == 1 )
1105
1105
return this ->delegate (E->inits ()[0 ]);
1106
1106
1107
- QualType ElemQT = E-> getType ()-> getAs <ComplexType>() ->getElementType ();
1107
+ QualType ElemQT = ComplexTy ->getElementType ();
1108
1108
PrimType ElemT = classifyPrim (ElemQT);
1109
1109
if (NumInits == 0 ) {
1110
1110
// Zero-initialize both elements.
You can’t perform that action at this time.
0 commit comments