Skip to content

Commit c27d22d

Browse files
committed
SILGen: Remove unused method, NFC
1 parent ceac05e commit c27d22d

File tree

2 files changed

+0
-19
lines changed

2 files changed

+0
-19
lines changed

lib/SILGen/LValue.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -342,10 +342,6 @@ class LValue {
342342
AbstractionPattern origFormalType,
343343
CanType substFormalType);
344344

345-
/// Form a class-reference l-value. Only suitable as the base of
346-
/// very specific member components.
347-
static LValue forClassReference(ManagedValue reference);
348-
349345
bool isValid() const { return !Path.empty(); }
350346

351347
/// Is this lvalue purely physical?

lib/SILGen/SILGenLValue.cpp

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1438,21 +1438,6 @@ LValue LValue::forAddress(ManagedValue address,
14381438
return lv;
14391439
}
14401440

1441-
LValue LValue::forClassReference(ManagedValue ref) {
1442-
assert(ref.isPlusZeroRValueOrTrivial());
1443-
assert(ref.getType().isObject());
1444-
assert(ref.getType().getSwiftRValueType()->mayHaveSuperclass());
1445-
1446-
CanType classType = ref.getType().getSwiftRValueType();
1447-
LValueTypeData typeData = {
1448-
AbstractionPattern(classType), classType, ref.getType()
1449-
};
1450-
1451-
LValue lv;
1452-
lv.add<ValueComponent>(ref, typeData);
1453-
return lv;
1454-
}
1455-
14561441
void LValue::addMemberComponent(SILGenFunction &gen, SILLocation loc,
14571442
AbstractStorageDecl *storage,
14581443
ArrayRef<Substitution> subs,

0 commit comments

Comments
 (0)