Skip to content
Snippets Groups Projects
Commit 75f8f8be authored by Aaron Ballman's avatar Aaron Ballman
Browse files

Attributes on K&R C functions should not cause incompatible function type with...

Attributes on K&R C functions should not cause incompatible function type with a redeclaration having the same attribute. Fixing this introduced a secondary problem where we were assuming that K&R functions could not be attributed types when reporting old-style function definitions that are not preceded by a prototype.

This patch fixes PR31020.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@294861 91177308-0d34-0410-b5e6-96231b3b80d8
parent 21c324f4
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment