Skip to content

Commit a76723f

Browse files
committed
SILGen: Remove some dead code
1 parent ee38655 commit a76723f

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

lib/SILGen/SILGenFunction.h

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -438,24 +438,6 @@ class LLVM_LIBRARY_VISIBILITY SILGenFunction
438438
Result.box = box;
439439
return Result;
440440
}
441-
442-
static VarLoc getForBox(SILValue box) {
443-
VarLoc Result;
444-
Result.value = SILValue();
445-
Result.box = box;
446-
return Result;
447-
}
448-
449-
/// Return either the value if we have one or if we only have a box, project
450-
/// our a new box address and return that.
451-
SILValue getValueOrBoxedValue(
452-
SILGenFunction &SGF,
453-
SILLocation loc = RegularLocation::getAutoGeneratedLocation()) {
454-
if (value)
455-
return value;
456-
assert(box);
457-
return SGF.B.createProjectBox(loc, box, 0);
458-
}
459441
};
460442

461443
/// VarLocs - Entries in this map are generated when a PatternBindingDecl is

0 commit comments

Comments
 (0)