[clang] [clang][SPIR-V] Always add convervence intrinsics (PR #88918)
Nathan Gauër via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 17 04:50:50 PDT 2024
================
@@ -1109,6 +1124,10 @@ void CodeGenFunction::EmitForStmt(const ForStmt &S,
llvm::BasicBlock *CondBlock = CondDest.getBlock();
EmitBlock(CondBlock);
+ if (getTarget().getTriple().isSPIRVLogical())
----------------
Keenuts wrote:
Right, something at the module level, which hides this into a more genering function, like the `shouldEmitRTTI`. Will fix.
https://github.com/llvm/llvm-project/pull/88918
More information about the cfe-commits
mailing list