Silence unused variable warning in Release builds. NFCI.

This commit is contained in:
Benjamin Kramer 2020-10-20 10:48:12 +02:00
parent c932266c8d
commit f2cca0b291
1 changed files with 1 additions and 2 deletions

View File

@ -2451,8 +2451,7 @@ bool VarDecl::checkForConstantInitialization(
"already evaluated var value before checking for constant init");
assert(getASTContext().getLangOpts().CPlusPlus && "only meaningful in C++");
const auto *Init = cast<Expr>(Eval->Value);
assert(!Init->isValueDependent());
assert(!cast<Expr>(Eval->Value)->isValueDependent());
// Evaluate the initializer to check whether it's a constant expression.
Eval->HasConstantInitialization =