Skip to content

Commit 431fe7d

Browse files
committed
Revert "[Strict memory safety] Squash warning about unsafety in "@objc enum" synthesized code"
This reverts commit fcd206f.
1 parent 0a1c1d3 commit 431fe7d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/Sema/DerivedConformance/DerivedConformanceRawRepresentable.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,7 @@ deriveBodyRawRepresentable_raw(AbstractFunctionDecl *toRawDecl, void *) {
105105

106106
auto *argList = ArgumentList::forImplicitCallTo(functionRef->getName(),
107107
{selfRef, typeExpr}, C);
108-
Expr *call = CallExpr::createImplicit(C, functionRef, argList);
109-
if (C.LangOpts.hasFeature(Feature::StrictMemorySafety))
110-
call = UnsafeExpr::createImplicit(C, SourceLoc(), call);
108+
auto call = CallExpr::createImplicit(C, functionRef, argList);
111109
auto *returnStmt = ReturnStmt::createImplicit(C, call);
112110
auto body = BraceStmt::create(C, SourceLoc(), ASTNode(returnStmt),
113111
SourceLoc());

0 commit comments

Comments
 (0)