CodeGen: avoid use of @clang.arc.use intrinsic at O0
authorSaleem Abdulrasool <compnerd@compnerd.org>
Fri, 5 May 2017 18:39:06 +0000 (18:39 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Fri, 5 May 2017 18:39:06 +0000 (18:39 +0000)
commitd95f625000b52b91dc50692e4a015f73483506d6
tree374738aa3e366b4ebcc527c52a0ff3c428909884
parentac1a97b32fbc2d8f1a95f76714c5b729b6f251ce
CodeGen: avoid use of @clang.arc.use intrinsic at O0

The clang.arc.use intrinsic is removed via the ARC Contract Pass.  This
pass is only executed in optimized builds (>= opt level 1).  Prevent the
optimization implemented in SVN r301667 from triggering at optimization
level 0 like every other ARC use intrinsic usage.

llvm-svn: 302270
clang/lib/CodeGen/CGBlocks.cpp
clang/test/CodeGenObjC/arc-foreach.m