-
Notifications
You must be signed in to change notification settings - Fork 104
Expand file tree
/
Copy pathnode-v10.15.3_fixclang.patch
More file actions
22 lines (20 loc) · 1.2 KB
/
node-v10.15.3_fixclang.patch
File metadata and controls
22 lines (20 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
diff --git a/examples/pxScene2d/external/libnode-v10.15.3/deps/v8/src/torque/ast-generator.cc b/examples/pxScene2d/external/libnode-v10.15.3/deps/v8/src/torque/ast-generator.cc
index 617afd148..65e465dda 100755
--- a/examples/pxScene2d/external/libnode-v10.15.3/deps/v8/src/torque/ast-generator.cc
+++ b/examples/pxScene2d/external/libnode-v10.15.3/deps/v8/src/torque/ast-generator.cc
@@ -120,7 +120,7 @@ Statement* AstGenerator::GetOptionalHelperBody(
antlrcpp::Any AstGenerator::visitParameterList(
TorqueParser::ParameterListContext* context) {
- ParameterList result{{}, {}, context->VARARGS(), {}};
+ ParameterList result{{}, {}, context->VARARGS() != nullptr, {}};
if (context->VARARGS()) {
result.arguments_variable = context->IDENTIFIER()->getSymbol()->getText();
}
@@ -141,7 +141,7 @@ antlrcpp::Any AstGenerator::visitTypeList(
antlrcpp::Any AstGenerator::visitTypeListMaybeVarArgs(
TorqueParser::TypeListMaybeVarArgsContext* context) {
- ParameterList result{{}, {}, context->VARARGS(), {}};
+ ParameterList result{{}, {}, context->VARARGS() != nullptr, {}};
result.types.reserve(context->type().size());
for (auto* type : context->type()) {
result.types.push_back(GetType(type));