]> granicus.if.org Git - clang/commit
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)
commit703c645447c4685c14022f7ce53869d11d514636
tree484faff104ab5ad968b650ea27154806f63405a3
parent9dfca4e40103cc626af8e8639df8f6bd4f74b859
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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@302270 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGBlocks.cpp
test/CodeGenObjC/arc-foreach.m