File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -15919,17 +15919,10 @@ ExprResult Sema::ActOnStmtExprResult(ExprResult ER) {
15919
15919
if (Cast && Cast->getCastKind() == CK_ARCConsumeObject)
15920
15920
return Cast->getSubExpr();
15921
15921
15922
- auto Ty = E->getType().getUnqualifiedType();
15923
-
15924
- // If the type is an atomic, the statement type is the underlying type.
15925
- if (const AtomicType *AT = Ty->getAs<AtomicType>()) {
15926
- Ty = AT->getValueType().getUnqualifiedType();
15927
- return PerformImplicitConversion(E, Ty, AssignmentAction::Casting);
15928
- }
15929
-
15930
15922
// FIXME: Provide a better location for the initialization.
15931
15923
return PerformCopyInitialization(
15932
- InitializedEntity::InitializeStmtExprResult(E->getBeginLoc(), Ty),
15924
+ InitializedEntity::InitializeStmtExprResult(
15925
+ E->getBeginLoc(), E->getType().getAtomicUnqualifiedType()),
15933
15926
SourceLocation(), E);
15934
15927
}
15935
15928
You can’t perform that action at this time.
0 commit comments