Remove unneeded test in tryCaptureAsConstant.
authorAkira Hatanaka <ahatanaka@apple.com>
Mon, 2 May 2016 22:29:40 +0000 (22:29 +0000)
committerAkira Hatanaka <ahatanaka@apple.com>
Mon, 2 May 2016 22:29:40 +0000 (22:29 +0000)
commit1cfa27309184d95b3e2f9a4f74d35fb3723856cc
tree6556f30c07188102a48428357cbefd2e27f2e84c
parent1e918c9cb37c251e8fcc88d403fba89a9fc7ea52
Remove unneeded test in tryCaptureAsConstant.

It isn't necessary to call hasDefaultArg because we can't rematerialize
a captured variable that is a function parameter, regardless of whether
or not it has a default argument. NFC.

llvm-svn: 268318
clang/lib/CodeGen/CGBlocks.cpp