File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -696,9 +696,7 @@ class BuiltinLiteralExpr : public LiteralExpr {
696696
697697 // / Set the builtin initializer that will be used to construct the
698698 // / literal.
699- void setBuiltinInitializer (ConcreteDeclRef builtinInitializer) {
700- BuiltinInitializer = builtinInitializer;
701- }
699+ void setBuiltinInitializer (ConcreteDeclRef builtinInitializer);
702700};
703701
704702// / The 'nil' literal.
Original file line number Diff line number Diff line change @@ -1089,7 +1089,14 @@ StringRef LiteralExpr::getLiteralKindDescription() const {
10891089 llvm_unreachable (" Unhandled literal" );
10901090}
10911091
1092- IntegerLiteralExpr * IntegerLiteralExpr::createFromUnsigned (ASTContext &C, unsigned value, SourceLoc loc) {
1092+ void BuiltinLiteralExpr::setBuiltinInitializer (
1093+ ConcreteDeclRef builtinInitializer) {
1094+ ASSERT (builtinInitializer);
1095+ BuiltinInitializer = builtinInitializer;
1096+ }
1097+
1098+ IntegerLiteralExpr * IntegerLiteralExpr::createFromUnsigned (
1099+ ASTContext &C, unsigned value, SourceLoc loc) {
10931100 llvm::SmallString<8 > Scratch;
10941101 llvm::APInt (sizeof (unsigned )*8 , value).toString (Scratch, 10 , /* signed*/ false );
10951102 auto Text = C.AllocateCopy (StringRef (Scratch));
You can’t perform that action at this time.
0 commit comments