diff options
Diffstat (limited to 'source')
| -rw-r--r-- | source/slang/slang-lower-to-ir.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/source/slang/slang-lower-to-ir.cpp b/source/slang/slang-lower-to-ir.cpp index 1359e1242..9d010ec1c 100644 --- a/source/slang/slang-lower-to-ir.cpp +++ b/source/slang/slang-lower-to-ir.cpp @@ -901,14 +901,6 @@ LoweredValInfo emitCallToDeclRef( args)); } - if( auto ctorDeclRef = funcDeclRef.as<ConstructorDecl>() ) - { - if(!ctorDeclRef.getDecl()->body && isFromStdLib(ctorDeclRef.getDecl()) && !as<InterfaceDecl>(ctorDeclRef.getParent().getDecl())) - { - SLANG_UNREACHABLE("stdlib error: __init() has no definition."); - } - } - // Fallback case is to emit an actual call. // LoweredValInfo funcVal = emitDeclRef(context, funcDeclRef, funcType); |
