File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -350,13 +350,18 @@ bool ProgramInfo::link() {
350
350
}
351
351
}
352
352
// repeat for static functions
353
+ //
354
+ // Static functions that don't have a body will always cause a linking
355
+ // error during compilation. They may still be useful as code is developed,
356
+ // so we treat them as if they are external, and constrain parameters
357
+ // to wild as appropriate.
353
358
for (const auto &U :StaticFunctionFVCons) {
354
359
for (const auto &V :U.second ) {
355
360
356
361
std::string FileName = U.first ;
357
362
std::string FuncName = V.first ;
358
363
FVConstraint *G = V.second ;
359
- if (!G->hasBody () && ! isExternOkay (FuncName) ) {
364
+ if (!G->hasBody ()) {
360
365
361
366
std::string Rsn =
362
367
" Unchecked pointer in parameter or return of static function " +
You can’t perform that action at this time.
0 commit comments