diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-05-16 19:35:48 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-05-16 19:35:48 +0000 |
| commit | b2633b9793174e3f9dc1e2d8a6eceb76b1726399 (patch) | |
| tree | a238273f724973c80410de505bcd2dd0633f0da5 /clang/test/CodeGen | |
| parent | 6b238633b77f8f18d4c3979a98ba2c77ce652cb1 (diff) | |
| download | bcm5719-llvm-b2633b9793174e3f9dc1e2d8a6eceb76b1726399.tar.gz bcm5719-llvm-b2633b9793174e3f9dc1e2d8a6eceb76b1726399.zip | |
Update for llvm api change.
Now that llvm cannot represent alias cycles, we have to diagnose erros just
before trying to close the cycle. This degrades the errors a bit. The real
solution is what it was before: if we want to provide good errors for these
cases, we have to be able to find a clang level decl given a mangled name
and produce the error from Sema.
llvm-svn: 209008
Diffstat (limited to 'clang/test/CodeGen')
| -rw-r--r-- | clang/test/CodeGen/alias.c | 4 | ||||
| -rw-r--r-- | clang/test/CodeGen/attributes.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/clang/test/CodeGen/alias.c b/clang/test/CodeGen/alias.c index 98449d36edf..5aafd95fde2 100644 --- a/clang/test/CodeGen/alias.c +++ b/clang/test/CodeGen/alias.c @@ -14,8 +14,8 @@ void f0(void) { } extern void f1(void); extern void f1(void) __attribute((alias("f0"))); // CHECKBASIC-DAG: @f1 = alias void ()* @f0 -// CHECKBASIC-DAG: @test8_foo = alias weak bitcast (void ()* @test8_bar to void (...)*) -// CHECKBASIC-DAG: @test8_zed = alias bitcast (void ()* @test8_bar to void (...)*) +// CHECKBASIC-DAG: @test8_foo = alias weak void (...), void ()* @test8_bar +// CHECKBASIC-DAG: @test8_zed = alias void (...), void ()* @test8_bar // CHECKBASIC-DAG: @test9_zed = alias void ()* @test9_bar // CHECKBASIC: define void @f0() [[NUW:#[0-9]+]] { diff --git a/clang/test/CodeGen/attributes.c b/clang/test/CodeGen/attributes.c index 356a17996a8..388ea822f0f 100644 --- a/clang/test/CodeGen/attributes.c +++ b/clang/test/CodeGen/attributes.c @@ -26,7 +26,7 @@ int t6 __attribute__((visibility("protected"))); // CHECK: @t12 = global i32 0, section "SECT" int t12 __attribute__((section("SECT"))); -// CHECK: @t9 = alias weak bitcast (void ()* @__t8 to void (...)*) +// CHECK: @t9 = alias weak void (...), void ()* @__t8 void __t8() {} void t9() __attribute__((weak, alias("__t8"))); |

