Skip to content

Commit d63ac99

Browse files
committed
Delete dead code around UnsafeGuaranteed that I removed recently.
1 parent 93a78b4 commit d63ac99

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

lib/AST/Builtins.cpp

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1195,23 +1195,6 @@ static ValueDecl *getCOWBufferForReading(ASTContext &C, Identifier Id) {
11951195
return builder.build(Id);
11961196
}
11971197

1198-
static ValueDecl *getUnsafeGuaranteed(ASTContext &C, Identifier Id) {
1199-
// <T : AnyObject> T -> (T, Int8Ty)
1200-
//
1201-
BuiltinFunctionBuilder builder(C);
1202-
auto T = makeGenericParam();
1203-
builder.addParameter(T);
1204-
Type Int8Ty = BuiltinIntegerType::get(8, C);
1205-
builder.setResult(makeTuple(T, makeConcrete(Int8Ty)));
1206-
return builder.build(Id);
1207-
}
1208-
1209-
static ValueDecl *getUnsafeGuaranteedEnd(ASTContext &C, Identifier Id) {
1210-
// Int8Ty -> ()
1211-
Type Int8Ty = BuiltinIntegerType::get(8, C);
1212-
return getBuiltinFunction(Id, { Int8Ty }, TupleType::getEmpty(C));
1213-
}
1214-
12151198
static ValueDecl *getIntInstrprofIncrement(ASTContext &C, Identifier Id) {
12161199
// (Builtin.RawPointer, Builtin.Int64, Builtin.Int32, Builtin.Int32) -> ()
12171200
Type Int64Ty = BuiltinIntegerType::get(64, C);

0 commit comments

Comments
 (0)