[Openmp-commits] [PATCH] D108774: [OpenMP][FIX] Allow declare variant to work with reference types
Alexey Bataev via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Thu Aug 26 12:36:44 PDT 2021
ABataev added inline comments.
================
Comment at: clang/lib/AST/ASTContext.cpp:9691
// the expression is a function call (possibly inside parentheses).
+ if (LHS->getAs<ReferenceType>() && RHS->getAs<ReferenceType>())
+ return mergeTypes(LHS->getAs<ReferenceType>()->getPointeeType(),
----------------
Does it matter if it is an LValueReferenceType or RValueReferenceType? What if one type is `&` ref kind and another is `&&`?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D108774/new/
https://reviews.llvm.org/D108774
More information about the Openmp-commits
mailing list