Skip to content

Commit bb08584

Browse files
committed
Get rid of redundant volatile check
1 parent a3157ac commit bb08584

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

clang/lib/AST/ExprConstant.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4547,14 +4547,6 @@ static CompleteObject findCompleteObject(EvalInfo &Info, const Expr *E,
45474547
assert(BaseVal && "got reference to unevaluated temporary");
45484548
} else if (const CompoundLiteralExpr *CLE =
45494549
dyn_cast_or_null<CompoundLiteralExpr>(Base)) {
4550-
// In C99, a CompoundLiteralExpr is an lvalue, and we defer evaluating
4551-
// the initializer until now for such expressions. Such an expression
4552-
// can't be an ICE in C, so this only matters for fold.
4553-
if (LValType.isVolatileQualified()) {
4554-
Info.FFDiag(E);
4555-
return CompleteObject();
4556-
}
4557-
45584550
// According to GCC info page:
45594551
//
45604552
// 6.28 Compound Literals

0 commit comments

Comments
 (0)