]> granicus.if.org Git - clang/commit
[NFC] Fix usage of Builder.insert(new Bitcast...)in CodeGenFunction
authorErich Keane <erich.keane@intel.com>
Tue, 18 Dec 2018 16:22:21 +0000 (16:22 +0000)
committerErich Keane <erich.keane@intel.com>
Tue, 18 Dec 2018 16:22:21 +0000 (16:22 +0000)
commit9f23440e30534272b51431c3997db504e7eae860
tree6ce355552f97adbf5b3251d04e9efd7ed744c23a
parent4090d6c943078cd267f5b642e30283270fc17801
[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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@349506 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CodeGenFunction.cpp
test/CodeGen/annotations-field.c