]> granicus.if.org Git - clang/commitdiff
Fix test case committed in r293106 so that it passes on targets whose
authorAkira Hatanaka <ahatanaka@apple.com>
Wed, 25 Jan 2017 23:36:15 +0000 (23:36 +0000)
committerAkira Hatanaka <ahatanaka@apple.com>
Wed, 25 Jan 2017 23:36:15 +0000 (23:36 +0000)
pointers are 4-bytes instead of 8-bytes.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@293111 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/lifetime2.c

index a1715f174e77caa505aa7bec2aa7a15d752f9a2a..55c6d91ad01735d3cc56278756cd426eb2a3aab6 100644 (file)
@@ -91,7 +91,10 @@ L:
 }
 
 // O2-LABEL: @jump_backward_over_declaration(
-// O2-NOT: call void @llvm.lifetime.{{.*}}(i64 4,
+// O2: %[[p:.*]] = alloca i32*
+// O2: %[[v0:.*]] = bitcast i32** %[[p]] to i8*
+// O2: call void @llvm.lifetime.start(i64 {{.*}}, i8* %[[v0]])
+// O2-NOT: call void @llvm.lifetime.start(
 
 extern void foo2(int p);