Skip to content

Commit df3ddd7

Browse files
committed
CGBuiltin - fix gcc Wunused-variable warning. NFC.
1 parent a00c422 commit df3ddd7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/CodeGen/CGBuiltin.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -942,7 +942,7 @@ CodeGenFunction::emitFlexibleArrayMemberSize(const Expr *E, unsigned Type,
942942
: Builder.CreateZExtOrTrunc(FAMSize, ResType);
943943
Value *Res = FAMSize;
944944

945-
if (const auto *DRE = dyn_cast<DeclRefExpr>(Base)) {
945+
if (isa<DeclRefExpr>(Base)) {
946946
// The whole struct is specificed in the __bdos.
947947
const RecordDecl *OuterRD =
948948
CountedByFD->getDeclContext()->getOuterLexicalRecordContext();

0 commit comments

Comments
 (0)