mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
introduce a SGF::emitRValueAsSingleValue helper function to wrap a common
and repetitive pattern. Swift SVN r12808
This commit is contained in:
@@ -1419,8 +1419,7 @@ public:
|
||||
{
|
||||
Expr *ME = ep->getMatchExpr();
|
||||
FullExpr scope(gen.Cleanups, CleanupLocation(ME));
|
||||
testBool = gen.emitRValue(ME)
|
||||
.getUnmanagedSingleValue(gen, ME);
|
||||
testBool = gen.emitRValue(ME).getUnmanagedSingleValue(gen, ME);
|
||||
}
|
||||
|
||||
// If the test succeeds, we move on to the next test; otherwise, we
|
||||
|
||||
Reference in New Issue
Block a user