r254143 - Fix for merging decls in pragma weak

Joerg Sonnenberger via cfe-commits cfe-commits at lists.llvm.org
Wed Dec 2 09:07:47 PST 2015


On Thu, Nov 26, 2015 at 09:34:31AM -0000, Alexander Musman via cfe-commits wrote:
> Author: amusman
> Date: Thu Nov 26 03:34:30 2015
> New Revision: 254143
> 
> URL: http://llvm.org/viewvc/llvm-project?rev=254143&view=rev
> Log:
> Fix for merging decls in pragma weak
> Calling CheckFunctionDeclaration so that 2 decls for the 'weak' are merged.
> Differential Revision: http://reviews.llvm.org/D13048

This crashes on the attached code.

Joerg
-------------- next part --------------
dmu_snapshots_destroy (char *, char *, int);
dsl_snapshots_destroy (char *, char *, int);
#pragma weak dmu_snapshots_destroy = dsl_snapshots_destroy
int
dsl_snapshots_destroy (char *p1, char *p2, int p3)
{
}


More information about the cfe-commits mailing list