[clang] [llvm] [OpenMP]Initial parsing/sema support for target_device selector set (PR #118471)

Alexey Bataev via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 11 08:05:39 PST 2024


================
@@ -15629,6 +15629,34 @@ ExprResult SemaOpenMP::VerifyPositiveIntegerConstantInClause(
   return ICE;
 }
 
+void SemaOpenMP::ActOnOpenMPDeviceNum(Expr *DeviceNumExpr) {
+  llvm::APSInt Result;
+  Expr::EvalResult EvalResult;
+  // Strip implicit casts from the expression
+  DeviceNumExpr = DeviceNumExpr->IgnoreImpCasts();
----------------
alexey-bataev wrote:

Why need to drop the casts here?

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


More information about the llvm-commits mailing list