Skip to content

Commit d13e109

Browse files
Use PerformImplicitConversion
1 parent 296aa35 commit d13e109

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

clang/lib/Sema/SemaExpr.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15866,9 +15866,7 @@ ExprResult Sema::ActOnStmtExprResult(ExprResult ER) {
1586615866
// If the type is an atomic, the statement type is the underlying type.
1586715867
if (const AtomicType *AT = Ty->getAs<AtomicType>()) {
1586815868
Ty = AT->getValueType().getUnqualifiedType();
15869-
return ImplicitCastExpr::Create(Context, Ty, CK_AtomicToNonAtomic, E,
15870-
/*base path*/ nullptr, VK_PRValue,
15871-
FPOptionsOverride());
15869+
return PerformImplicitConversion(E, Ty, AssignmentAction::Casting);
1587215870
}
1587315871

1587415872
// FIXME: Provide a better location for the initialization.

0 commit comments

Comments
 (0)