|
|
@@ -820,10 +820,13 @@ void SpirvBuilder::addModuleProcessed(llvm::StringRef process) {
|
|
|
module->addModuleProcessed(new (context) SpirvModuleProcessed({}, process));
|
|
|
}
|
|
|
|
|
|
-SpirvExtInstImport *SpirvBuilder::getGLSLExtInstSet(SourceLocation loc) {
|
|
|
+SpirvExtInstImport *SpirvBuilder::getGLSLExtInstSet() {
|
|
|
SpirvExtInstImport *glslSet = module->getGLSLExtInstSet();
|
|
|
if (!glslSet) {
|
|
|
- glslSet = new (context) SpirvExtInstImport(loc, "GLSL.std.450");
|
|
|
+ // The extended instruction set is likely required for several different
|
|
|
+ // reasons. We can't pinpoint the source location for one specific function.
|
|
|
+ glslSet =
|
|
|
+ new (context) SpirvExtInstImport(/*SourceLocation*/ {}, "GLSL.std.450");
|
|
|
module->addExtInstSet(glslSet);
|
|
|
}
|
|
|
return glslSet;
|