diff options
| author | Eli Friedman <eli.friedman@gmail.com> | 2013-09-05 23:51:03 +0000 |
|---|---|---|
| committer | Eli Friedman <eli.friedman@gmail.com> | 2013-09-05 23:51:03 +0000 |
| commit | af65120bd3825ed7548108618cc709ba22102439 (patch) | |
| tree | 373d9247be356344a8d77f549fc02db94d109d2e /llvm/lib/Transforms | |
| parent | c27d0d5ef26adc71074b699da9a12e78970fbaee (diff) | |
| download | bcm5719-llvm-af65120bd3825ed7548108618cc709ba22102439.tar.gz bcm5719-llvm-af65120bd3825ed7548108618cc709ba22102439.zip | |
Improve error for "override" + non-virtual func.
Consider something like the following:
struct X {
virtual void foo(float x);
};
struct Y : X {
void foo(double x) override;
};
The error is almost certainly that Y::foo() has the wrong signature,
rather than incorrect usage of the override keyword. This patch
adds an appropriate diagnostic for that case.
Fixes <rdar://problem/14785106>.
llvm-svn: 190109
Diffstat (limited to 'llvm/lib/Transforms')
0 files changed, 0 insertions, 0 deletions

