DavidSpickett added inline comments.
================ Comment at: clang/lib/Sema/SemaOpenMP.cpp:23148 + GlobalDeclRefChecker Checker; + if (auto *TargetVarDecl = dyn_cast_or_null<VarDecl>(TargetDecl)) + Checker.declareTargetInitializer(TargetDecl); ---------------- FYI I fixed an unused var warning here: https://github.com/llvm/llvm-project/commit/f3ca99a87c566fb5e910071f4cbb474ddb4e7f37 Potentially you could pass the result of the cast into declareTargetInitializer but I don't know enough about the code to change that too. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D146418/new/ https://reviews.llvm.org/D146418 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits