From: Chris Lattner Date: Sun, 17 Apr 2011 16:19:57 +0000 (+0000) Subject: when assertions are disabled, labels go away. Hopefully fixes the windows build. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bbc1c2ef7412277d21eae4b0398c2de855ac519c;p=clang when assertions are disabled, labels go away. Hopefully fixes the windows build. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@129660 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CodeGen/switch-dce.c b/test/CodeGen/switch-dce.c index 07a5eba236..4013809cbf 100644 --- a/test/CodeGen/switch-dce.c +++ b/test/CodeGen/switch-dce.c @@ -220,10 +220,8 @@ void test12() { // rdar://9289524 - Check that the empty cases don't produce an empty block. // CHECK: @test13 // CHECK: switch -// CHECK: i32 42, label %sw.epilog -// CHECK: i32 11, label %sw.epilog -// CHECK: sw.epilog: -// CHECK: ret void +// CHECK: i32 42, label [[EPILOG:%[0-9.a-z]+]] +// CHECK: i32 11, label [[EPILOG]] void test13(int x) { switch (x) { case 42: break; // No empty block please.