diff options
author | Chris Lattner <sabre@nondot.org> | 2009-03-22 21:56:56 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-03-22 21:56:56 +0000 |
commit | e64911a4ae4d20583f650d59f7975ec43256679f (patch) | |
tree | add77011b3b8ede907bf98943c977570a23b0b1a /clang/test/CodeGen/builtins.c | |
parent | bae2042bb5ce138b49cf9ab31b81b4c847f1aa5c (diff) | |
download | bcm5719-llvm-e64911a4ae4d20583f650d59f7975ec43256679f.tar.gz bcm5719-llvm-e64911a4ae4d20583f650d59f7975ec43256679f.zip |
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
llvm-svn: 67484
Diffstat (limited to 'clang/test/CodeGen/builtins.c')
-rw-r--r-- | clang/test/CodeGen/builtins.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/test/CodeGen/builtins.c b/clang/test/CodeGen/builtins.c index 07f3db9465f..7a5e5d938d3 100644 --- a/clang/test/CodeGen/builtins.c +++ b/clang/test/CodeGen/builtins.c @@ -112,3 +112,11 @@ int main() { return 0; } + + +void strcat() {} + +void foo() { + __builtin_strcat(0, 0); +} + |