]> granicus.if.org Git - clang/commit
Revert "Fix for merging decls in pragma weak Calling CheckFunctionDeclaration so...
authorAlexander Kornienko <alexfh@google.com>
Thu, 3 Dec 2015 11:37:28 +0000 (11:37 +0000)
committerAlexander Kornienko <alexfh@google.com>
Thu, 3 Dec 2015 11:37:28 +0000 (11:37 +0000)
commit769d8f4822a3b549e8cd71020516be2950951d2b
tree7412e149c91fc6ec7c2d10d5b2261ed683a56df1
parent0267370b16cd972a4d4fe96b3309daa9f4109ea0
Revert "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 reverts commit r254143 which introduces a crash on the following input:
  f(char *);
  g(char *);
  #pragma weak f = g
  int g(char *p) {}

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@254605 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaDeclAttr.cpp
test/CodeGen/pragma-weak.c
test/Sema/pragma-weak.c