Skip to content

Commit a89a8f3

Browse files
changed warning to error for missing vtable
1 parent 4479f98 commit a89a8f3

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

tsc/lib/TypeScript/MLIRGen.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4817,8 +4817,9 @@ class MLIRGenImpl
48174817
}
48184818
else if (classInfo->hasConstructor)
48194819
{
4820-
// TODO: check if you are not creating usless code when VTABLE is not in static class
4821-
theModule.emitWarning("class does not have virtual table but has constructor. Class: ") << classInfo->fullName;
4820+
// TODO: check if you are not creating uswless code when VTABLE is not in static class
4821+
theModule.emitError("class does not have virtual table but has constructor. Class: ") << classInfo->fullName;
4822+
return mlir::failure();
48224823
}
48234824
}
48244825

0 commit comments

Comments
 (0)