[clang] [Clang] Disable RTTI for offloading at the frontend level (PR #127082)

Arvind Sudarsanam via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 31 16:50:28 PDT 2025


================
@@ -7117,6 +7117,13 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
     }
   }
 
+  // The offloading devices do not support RTTI.
----------------
asudarsa wrote:

I see that IsHIPDevice has been added to the check here (compared to what was deleted inside CodeGenModule.h). is that expected?

Thanks

https://github.com/llvm/llvm-project/pull/127082


More information about the cfe-commits mailing list