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 @@ -2632,11 +2632,13 @@ void OpEmitter::genInlineCreateBody(
26322632 interleaveComma (nonBuilderStateArgsList, nonBuilderStateArgsOS);
26332633 nonBuilderStateArgs = " , " + nonBuilderStateArgs;
26342634 }
2635- cWithLoc->body () << llvm::formatv (inlineCreateBody, locParamName,
2636- nonBuilderStateArgs,
2637- opClass.getClassName ());
2638- cImplicitLoc->body () << llvm::formatv (inlineCreateBodyImplicitLoc,
2639- nonBuilderStateArgs);
2635+ if (cWithLoc)
2636+ cWithLoc->body () << llvm::formatv (inlineCreateBody, locParamName,
2637+ nonBuilderStateArgs,
2638+ opClass.getClassName ());
2639+ if (cImplicitLoc)
2640+ cImplicitLoc->body () << llvm::formatv (inlineCreateBodyImplicitLoc,
2641+ nonBuilderStateArgs);
26402642}
26412643
26422644void OpEmitter::genSeparateArgParamBuilder () {
You can’t perform that action at this time.
0 commit comments