]> granicus.if.org Git - clang/commit
switch getBuiltinLibFunction to use the new GetOrCreateLLVMFunction
authorChris Lattner <sabre@nondot.org>
Sun, 22 Mar 2009 21:56:56 +0000 (21:56 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 22 Mar 2009 21:56:56 +0000 (21:56 +0000)
commitb808c952bbff821dce727dd801a1098d64394f98
tree6dd39a0a265f769bcf29483e44372d60e7f09617
parent1ab10d45bf7669a299a20021fa5c69845d9f0ee0
switch getBuiltinLibFunction to use the new GetOrCreateLLVMFunction
functionality, fixing a crash on the attached testcase.  Eliminate the
BuiltinFunctions cache, as it can contain dangling pointers.  This fixes
a bunch of valgrind errors on test/CodeGen/builtins.c

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67484 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CodeGenModule.cpp
lib/CodeGen/CodeGenModule.h
test/CodeGen/builtins.c