diff options
Diffstat (limited to 'source/slang/slang.cpp')
| -rw-r--r-- | source/slang/slang.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/slang/slang.cpp b/source/slang/slang.cpp index a027340b5..4ce78ee96 100644 --- a/source/slang/slang.cpp +++ b/source/slang/slang.cpp @@ -4866,6 +4866,9 @@ void Session::addBuiltinSource( SLANG_UNEXPECTED("error in Slang standard library"); } + // Compiling stdlib should not yield any warnings. + SLANG_ASSERT(sink.outputBuffer.getLength() == 0); + // Extract the AST for the code we just parsed auto module = compileRequest->translationUnits[translationUnitIndex]->getModule(); auto moduleDecl = module->getModuleDecl(); |
