Suppress inlining when the block address is taken
[oota-llvm.git] / test / Transforms / Inline / blockaddress.ll
index 4206312d77436a35ded2d57e8547e1ee57181c4f..8eb307250330125ab8424376dd9264193b7e1400 100644 (file)
@@ -1,8 +1,9 @@
 ; RUN: opt -inline -S < %s | FileCheck %s
 ; PR10162
 
-; Make sure the blockaddress is mapped correctly when doit is inlined
-; CHECK: store i8* blockaddress(@f, %here.i), i8** @ptr1, align 8
+; Make sure doit is not inlined since the blockaddress is taken
+; which could be unsafe
+; CHECK: store i8* blockaddress(@doit, %here), i8** %pptr, align 8
 
 @i = global i32 1, align 4
 @ptr1 = common global i8* null, align 8