summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/functions.c
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-05-05 06:16:31 +0000
committerChris Lattner <sabre@nondot.org>2009-05-05 06:16:31 +0000
commit36797ab2513a1e31304b703f3771fb143c0da1e1 (patch)
tree0a73541a4e73a7f34e35bb199d9bd5b6cfdd750b /clang/test/CodeGen/functions.c
parent448a2285218486b87a819ffa0488e3908ca50107 (diff)
downloadbcm5719-llvm-36797ab2513a1e31304b703f3771fb143c0da1e1.tar.gz
bcm5719-llvm-36797ab2513a1e31304b703f3771fb143c0da1e1.zip
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
Diffstat (limited to 'clang/test/CodeGen/functions.c')
-rw-r--r--clang/test/CodeGen/functions.c2
1 files changed, 1 insertions, 1 deletions
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);
}
OpenPOWER on IntegriCloud