Skip to content

Commit

Permalink
Fix "unused variable" warning from recent GCC.
Browse files Browse the repository at this point in the history
  • Loading branch information
zygoloid committed Jul 15, 2020
1 parent a3ad8f9 commit 268025e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions clang/lib/AST/ExprConstant.cpp
Expand Up @@ -9930,8 +9930,7 @@ namespace {
const ConstantArrayType *CAT =
Info.Ctx.getAsConstantArrayType(E->getType());
if (!CAT) {
if (const IncompleteArrayType *IAT =
Info.Ctx.getAsIncompleteArrayType(E->getType())) {
if (E->getType()->isIncompleteArrayType()) {
// We can be asked to zero-initialize a flexible array member; this
// is represented as an ImplicitValueInitExpr of incomplete array
// type. In this case, the array has zero elements.
Expand Down

0 comments on commit 268025e

Please sign in to comment.