File tree Expand file tree Collapse file tree
tools/clang/tools/dxcompiler Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -940,9 +940,7 @@ class DxcCompiler : public IDxcCompiler3,
940940 action.Execute ();
941941 action.EndSourceFile ();
942942 }
943- }
944- // SPIRV change starts
945- else if (!isPreprocessing && opts.GenSPIRV ) {
943+ } else if (!isPreprocessing && opts.GenSPIRV ) { // SPIRV change starts
946944 // Since SpirvOptions is passed to the SPIR-V CodeGen as a whole
947945 // structure, we need to copy a few non-spirv-specific options into the
948946 // structure.
@@ -969,9 +967,8 @@ class DxcCompiler : public IDxcCompiler3,
969967 action.Execute ();
970968 action.EndSourceFile ();
971969 outStream.flush ();
972- }
973- // SPIRV change ends
974- else if (!isPreprocessing) {
970+ // SPIRV change ends
971+ } else if (!isPreprocessing) {
975972 EmitBCAction action (&llvmContext);
976973 FrontendInputFile file (pUtf8SourceName, IK_HLSL);
977974 bool compileOK;
You can’t perform that action at this time.
0 commit comments