r293111 - Fix test case committed in r293106 so that it passes on targets whose

Akira Hatanaka via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 25 15:36:15 PST 2017


Author: ahatanak
Date: Wed Jan 25 17:36:15 2017
New Revision: 293111

URL: http://llvm.org/viewvc/llvm-project?rev=293111&view=rev
Log:
Fix test case committed in r293106 so that it passes on targets whose
pointers are 4-bytes instead of 8-bytes.

Modified:
    cfe/trunk/test/CodeGen/lifetime2.c

Modified: cfe/trunk/test/CodeGen/lifetime2.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/lifetime2.c?rev=293111&r1=293110&r2=293111&view=diff
==============================================================================
--- cfe/trunk/test/CodeGen/lifetime2.c (original)
+++ cfe/trunk/test/CodeGen/lifetime2.c Wed Jan 25 17:36:15 2017
@@ -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);
 




More information about the cfe-commits mailing list