From: Eli Friedman Date: Wed, 4 Jan 2012 23:41:09 +0000 (+0000) Subject: Fix test on Release builds. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0ad93a3943394e1ccd017ef587a2c20f109288b1;p=clang Fix test on Release builds. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147565 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CodeGenCXX/const-init.cpp b/test/CodeGenCXX/const-init.cpp index 6fabfc762e..1cfcdba22f 100644 --- a/test/CodeGenCXX/const-init.cpp +++ b/test/CodeGenCXX/const-init.cpp @@ -67,5 +67,5 @@ __int128_t PR11705 = (__int128_t)&PR11705; void UnfoldableAddrLabelDiff() { static __int128_t x = (long)&&a-(long)&&b; a:b:return;} // But make sure we do fold this. -// CHECK: @_ZZ21FoldableAddrLabelDiffvE1x = internal global i64 sub (i64 ptrtoint (i8* blockaddress(@_Z21FoldableAddrLabelDiffv, %a) +// CHECK: @_ZZ21FoldableAddrLabelDiffvE1x = internal global i64 sub (i64 ptrtoint (i8* blockaddress(@_Z21FoldableAddrLabelDiffv void FoldableAddrLabelDiff() { static long x = (long)&&a-(long)&&b; a:b:return;}