aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/Local.cpp
diff options
context:
space:
mode:
authorMikhail Maltsev <mikhail.maltsev@arm.com>2018-02-14 11:34:25 +0000
committerMikhail Maltsev <mikhail.maltsev@arm.com>2018-02-14 11:34:25 +0000
commit8d9acc5342052e482a40fb27b22381f7c1a7f5d1 (patch)
tree6e3a3a9cfa879d69e58f5fa750708bb7cdfebba0 /llvm/lib/Transforms/Utils/Local.cpp
parent4c05f1427134a524e1c84ccd57f59a96ffdffe59 (diff)
downloadllvm-8d9acc5342052e482a40fb27b22381f7c1a7f5d1.zip
llvm-8d9acc5342052e482a40fb27b22381f7c1a7f5d1.tar.gz
llvm-8d9acc5342052e482a40fb27b22381f7c1a7f5d1.tar.bz2
[Sema] Fix decltype of static data members
Summary: According to the C++11 standard [dcl.type.simple]p4: The type denoted by decltype(e) is defined as follows: - if e is an unparenthesized id-expression or an unparenthesized class member access (5.2.5), decltype(e) is the type of the entity named by e. Currently Clang handles the 'member access' case incorrectly for static data members (decltype returns T& instead of T). This patch fixes the issue. Reviewers: faisalv, rsmith, rogfer01 Reviewed By: rogfer01 Subscribers: rogfer01, cfe-commits Differential Revision: https://reviews.llvm.org/D42969 llvm-svn: 325117
Diffstat (limited to 'llvm/lib/Transforms/Utils/Local.cpp')
0 files changed, 0 insertions, 0 deletions