]> granicus.if.org Git - clang/commit
When defining a function whose type has no prototype, make an effort
authorChris Lattner <sabre@nondot.org>
Tue, 5 May 2009 06:16:31 +0000 (06:16 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 5 May 2009 06:16:31 +0000 (06:16 +0000)
commitbdb0132722082886558f31eccdba06ae1852c0ee
tree33deca8104f085ef2731a9e4b355ab7350112582
parentd37d9b5bf9dd5addf6d8d3b20c4d828218c99d23
When defining a function whose type has no prototype, make an effort
to go back and clean up existing uses of the bitcasted function.  This
is not just an optimization: it is required for correctness to get
always inline functions to work, see testcases in function-attributes.c.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70971 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CodeGenModule.cpp
test/CodeGen/function-attributes.c
test/CodeGen/functions.c