File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -1043,6 +1043,12 @@ void JSONBuiltinInterfaceEmitter::ExpandTypes() {
1043
1043
1044
1044
void JSONBuiltinInterfaceEmitter::EmitBuiltins () {
1045
1045
struct FnDesc {
1046
+ FnDesc (const Record *Rec)
1047
+ : IsPure(Rec->getValueAsBit (" IsPure" )),
1048
+ IsConst(Rec->getValueAsBit (" IsConst" )),
1049
+ IsConv(Rec->getValueAsBit (" IsConv" )),
1050
+ IsVariadic(Rec->getValueAsBit (" IsVariadic" )) {}
1051
+
1046
1052
bool IsPure;
1047
1053
bool IsConst;
1048
1054
bool IsConv;
@@ -1077,11 +1083,7 @@ void JSONBuiltinInterfaceEmitter::EmitBuiltins() {
1077
1083
return NbTypes == NbOverload || NbTypes == 1 ;
1078
1084
}));
1079
1085
for (size_t idx = 0 ; idx < NbOverload; idx++) {
1080
- FnDesc Proto;
1081
- Proto.IsPure = Overload.first ->getValueAsBit (" IsPure" );
1082
- Proto.IsConst = Overload.first ->getValueAsBit (" IsConst" );
1083
- Proto.IsConv = Overload.first ->getValueAsBit (" IsConv" );
1084
- Proto.IsVariadic = Overload.first ->getValueAsBit (" IsVariadic" );
1086
+ FnDesc Proto (Overload.first );
1085
1087
for (llvm::ArrayRef<std::string> Types : SignatureTypesIt) {
1086
1088
Proto.Args .emplace_back (Types[idx >= Types.size () ? 0 : idx]);
1087
1089
}
You can’t perform that action at this time.
0 commit comments