Remove duplicate getAs<> call, avoiding a clang static analyzer null dereference warning.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@373396
91177308-0d34-0410-b5e6-
96231b3b80d8
// referencee. InitListExprs for unions and arrays can't have references.
if (const RecordType *RT = E->getType()->getAs<RecordType>()) {
if (!RT->isUnionType()) {
- RecordDecl *SD = E->getType()->getAs<RecordType>()->getDecl();
+ RecordDecl *SD = RT->getDecl();
CharUnits NumNonZeroBytes = CharUnits::Zero();
unsigned ILEElement = 0;