summaryrefslogtreecommitdiffstats
path: root/source/slang/slang.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang.cpp')
-rw-r--r--source/slang/slang.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/source/slang/slang.cpp b/source/slang/slang.cpp
index 90a9a3aef..c25a4f2ce 100644
--- a/source/slang/slang.cpp
+++ b/source/slang/slang.cpp
@@ -254,12 +254,6 @@ void CompileRequest::generateIR()
// for all of the declarations in the translation
// units that were loaded.
- // At the moment, use of the IR is not enabled by
- // default, so we will skip this step unless
- // the flag was set to op in.
- if (!(compileFlags & SLANG_COMPILE_FLAG_USE_IR))
- return;
-
// Each translation unit is its own little world
// for code generation (we are not trying to
// replicate the GLSL linkage model), and so
@@ -529,7 +523,7 @@ RefPtr<ModuleDecl> CompileRequest::loadModule(
// semantic checking to be enabled.
//
// TODO: decide which options, if any, should be inherited.
- translationUnit->compileFlags = this->compileFlags & (SLANG_COMPILE_FLAG_USE_IR);
+ translationUnit->compileFlags = 0;
RefPtr<SourceFile> sourceFile = getSourceManager()->allocateSourceFile(path, source);