aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/ProfileData/Coverage/CoverageMapping.cpp
diff options
context:
space:
mode:
authorAlex Lorenz <arphaman@gmail.com>2017-11-08 22:44:34 +0000
committerAlex Lorenz <arphaman@gmail.com>2017-11-08 22:44:34 +0000
commit1ee711633dfdd1fe4e94926723c92ec25ebab9f5 (patch)
tree86caa6ef704568e5bd44b2a9133293f0af8d8334 /llvm/lib/ProfileData/Coverage/CoverageMapping.cpp
parent2fd314e2e2e6193722ba5ef4b6b01ae40feeb1fe (diff)
downloadllvm-1ee711633dfdd1fe4e94926723c92ec25ebab9f5.zip
llvm-1ee711633dfdd1fe4e94926723c92ec25ebab9f5.tar.gz
llvm-1ee711633dfdd1fe4e94926723c92ec25ebab9f5.tar.bz2
[ObjC] Fix function signature handling for blocks literals with attributes
Block literals can have a type with attributes in its signature, e.g. ns_returns_retained. The code that inspected the type loc of the block when declaring its parameters didn't account for this fact, and only looked through paren type loc. This commit ensures that getAsAdjusted is used instead of IgnoreParens to find the block's FunctionProtoTypeLoc. This ensures that block parameters are declared correctly in the block and avoids the 'undeclared identifier' error. rdar://35416160 llvm-svn: 317736
Diffstat (limited to 'llvm/lib/ProfileData/Coverage/CoverageMapping.cpp')
0 files changed, 0 insertions, 0 deletions