summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/annotations-field.c
diff options
context:
space:
mode:
authorErich Keane <erich.keane@intel.com>2018-12-18 16:22:21 +0000
committerErich Keane <erich.keane@intel.com>2018-12-18 16:22:21 +0000
commit2a4eea3061bc2c875bfacb4a1858d42036938b66 (patch)
treef5225f69a3604d73d5ce863b0934a16874d21fa4 /clang/test/CodeGen/annotations-field.c
parentb748c0e696602cd8371c875a3eb337b8b221800d (diff)
downloadbcm5719-llvm-2a4eea3061bc2c875bfacb4a1858d42036938b66.tar.gz
bcm5719-llvm-2a4eea3061bc2c875bfacb4a1858d42036938b66.zip
[NFC] Fix usage of Builder.insert(new Bitcast...)in CodeGenFunction
This is exactly a "CreateBitCast", so refactor this to get rid of a 'new'. Note that this slightly changes the test, as the Builder is now seemingly smart enough to fold one of the bitcasts into the annotation call. Change-Id: I1733fb1fdf91f5c9d88651067130b9a4e7b5ab67 llvm-svn: 349506
Diffstat (limited to 'clang/test/CodeGen/annotations-field.c')
-rw-r--r--clang/test/CodeGen/annotations-field.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/test/CodeGen/annotations-field.c b/clang/test/CodeGen/annotations-field.c
index 02bae15a2bc..27e64de7bbd 100644
--- a/clang/test/CodeGen/annotations-field.c
+++ b/clang/test/CodeGen/annotations-field.c
@@ -21,7 +21,6 @@ int main(int argc, char **argv) {
// CHECK-NEXT: call i8* @llvm.ptr.annotation.p0i8({{.*}}str{{.*}}str{{.*}}i32 8)
// CHECK-NEXT: bitcast i8* {{.*}} to i32*
gf.v = argc;
-// CHECK: bitcast i32* getelementptr inbounds (%struct.foo, %struct.foo* @gf, i32 0, i32 0) to i8*
-// CHECK-NEXT: call i8* @llvm.ptr.annotation.p0i8({{.*}}str{{.*}}str{{.*}}i32 8)
+// CHECK: call i8* @llvm.ptr.annotation.p0i8(i8* bitcast (%struct.foo* @gf to i8*), {{.*}}str{{.*}}str{{.*}}i32 8)
return 0;
}
OpenPOWER on IntegriCloud