File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -185,7 +185,11 @@ void SPIRVModuleAnalysis::setBaseInfo(const Module &M) {
185
185
// OpenCL 1.0 by default for the OpenCL environment to avoid puzzling
186
186
// run-times with Unknown/0.0 version output. For a reference, LLVM-SPIRV
187
187
// Translator avoids potential issues with run-times in a similar manner.
188
- if (ST->isOpenCLEnv ()) {
188
+ // FIXME: At the moment, `isOpenCLEnv()` is not precise enough. This is
189
+ // because the Triple is not always precise enough. For now, we'll rely
190
+ // instead on `isLogicalSPIRV()`, but this should be changed when
191
+ // `isOpenCLEnv()` is precise enough.
192
+ if (!ST->isLogicalSPIRV ()) {
189
193
MAI.SrcLang = SPIRV::SourceLanguage::OpenCL_CPP;
190
194
MAI.SrcLangVersion = 100000 ;
191
195
} else {
You can’t perform that action at this time.
0 commit comments