From 36797ab2513a1e31304b703f3771fb143c0da1e1 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 5 May 2009 06:16:31 +0000 Subject: 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. llvm-svn: 70971 --- clang/test/CodeGen/functions.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/test/CodeGen/functions.c') diff --git a/clang/test/CodeGen/functions.c b/clang/test/CodeGen/functions.c index 55f580b303c..985599216e1 100644 --- a/clang/test/CodeGen/functions.c +++ b/clang/test/CodeGen/functions.c @@ -23,7 +23,7 @@ int a() {return 1;} void f0() {} void f1(); -// RUN: grep 'call void (...)\* bitcast (void ()\* @f1' %t && +// RUN: grep 'call void @f1()' %t && void f2(void) { f1(1, 2, 3); } -- cgit v1.2.3