jdoerfert added inline comments.
================ Comment at: clang/lib/Sema/SemaOpenMP.cpp:5879 D.SetIdentifier(&VariantII, D.getBeginLoc()); return BaseFD; } ---------------- ABataev wrote: > Does the user of this function expect that BaseFD can be `nullptr` after this > change? It was always OK to return a `nullptr`, I think. The call site is here https://github.com/llvm/llvm-project/blob/master/clang/lib/Sema/SemaDecl.cpp#L13765 The important thing is that we mangle the name, but not returning a `BaseFD` will simply not add an `OMPDeclareVariantAttr` to anything, making this variant unused code. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D85878/new/ https://reviews.llvm.org/D85878 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits