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 {
696
696
697
697
// / Set the builtin initializer that will be used to construct the
698
698
// / literal.
699
- void setBuiltinInitializer (ConcreteDeclRef builtinInitializer) {
700
- BuiltinInitializer = builtinInitializer;
701
- }
699
+ void setBuiltinInitializer (ConcreteDeclRef builtinInitializer);
702
700
};
703
701
704
702
// / The 'nil' literal.
Original file line number Diff line number Diff line change @@ -1089,7 +1089,14 @@ StringRef LiteralExpr::getLiteralKindDescription() const {
1089
1089
llvm_unreachable (" Unhandled literal" );
1090
1090
}
1091
1091
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) {
1093
1100
llvm::SmallString<8 > Scratch;
1094
1101
llvm::APInt (sizeof (unsigned )*8 , value).toString (Scratch, 10 , /* signed*/ false );
1095
1102
auto Text = C.AllocateCopy (StringRef (Scratch));
You can’t perform that action at this time.
0 commit comments