]> granicus.if.org Git - clang/commit
Process attributes 'ifunc' and 'alias' when checking for redefinition
authorSerge Pavlov <sepavloff@gmail.com>
Sat, 18 Feb 2017 06:04:15 +0000 (06:04 +0000)
committerSerge Pavlov <sepavloff@gmail.com>
Sat, 18 Feb 2017 06:04:15 +0000 (06:04 +0000)
commit0b7608a93efca9e8a3ea17f02e13b9acbaa3ce86
tree04f626aebdd58cdc2445417496b9cde4519ebb49
parent7202773fc4196740561a47eca27671bbfe260b81
Process attributes 'ifunc' and 'alias' when checking for redefinition

These attributes effectively turn a non-defining declaration into a
definition, so the case when the declaration already has a body must
be diagnosed properly.

Differential Revision: https://reviews.llvm.org/D30032

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@295541 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaDecl.cpp
test/Sema/alias-redefinition.c
test/Sema/attr-ifunc.c