We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59a482e commit 909a780Copy full SHA for 909a780
clang/lib/CodeGen/BackendUtil.cpp
@@ -1483,9 +1483,8 @@ void EmitAssemblyHelper::RunOptimizationPipeline(
1483
// -fsycl-instrument-device-code option was passed. This option can be used
1484
// only with spir triple.
1485
if (CodeGenOpts.SPIRITTAnnotations) {
1486
- if (!llvm::Triple(TheModule->getTargetTriple()).isSPIR())
1487
- llvm::report_fatal_error(
1488
- "ITT annotations can only by added to a module with spir target");
+ assert(llvm::Triple(TheModule->getTargetTriple()).isSPIR() &&
+ "ITT annotations can only by added to a module with spir target");
1489
MPM.addPass(SPIRITTAnnotationsPass());
1490
}
1491
0 commit comments