diff options
author | Michele Scandale <michele.scandale@gmail.com> | 2020-02-24 07:59:26 -0500 |
---|---|---|
committer | Aaron Ballman <aaron@aaronballman.com> | 2020-02-24 08:08:47 -0500 |
commit | bd5b22070b6984d89c13b6cf38c3e54fc98ce291 (patch) | |
tree | c5c1718ce9813ee98a4ac4e772f2358a9bfc2953 /llvm/lib/CodeGen/ReachingDefAnalysis.cpp | |
parent | 12fed51c0807b0727f9eecdd3dcf774a82fa7ecd (diff) | |
download | llvm-bd5b22070b6984d89c13b6cf38c3e54fc98ce291.zip llvm-bd5b22070b6984d89c13b6cf38c3e54fc98ce291.tar.gz llvm-bd5b22070b6984d89c13b6cf38c3e54fc98ce291.tar.bz2 |
Fix TryParsePtrOperatorSeq.
The syntax rules for ptr-operator allow attributes after *, &,
&&, therefore we should be able to parse the following:
void fn() {
void (*[[attr]] x)() = &fn;
void (&[[attr]] y)() = fn;
void (&&[[attr]] z)() = fn;
}
However the current logic in TryParsePtrOperatorSeq does not consider
the presence of attributes leading to unexpected parsing errors.
Moreover we should also consider _Atomic a possible qualifier that can
appear after the sequence of attribute specifiers.
Diffstat (limited to 'llvm/lib/CodeGen/ReachingDefAnalysis.cpp')
0 files changed, 0 insertions, 0 deletions