summaryrefslogtreecommitdiffstats
path: root/llvm/lib/DebugInfo/Symbolize/SymbolizableObjectFile.h
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@intel.com>2018-04-16 17:05:01 +0000
committerCraig Topper <craig.topper@intel.com>2018-04-16 17:05:01 +0000
commitf864250517695aa05f4446d840ab415b4e084464 (patch)
tree1dfcb386547970327ff5d1c3ccb8e443e0a041f0 /llvm/lib/DebugInfo/Symbolize/SymbolizableObjectFile.h
parent978aae4309e29474a25129ba7635ebf3b5fe67d5 (diff)
downloadbcm5719-llvm-f864250517695aa05f4446d840ab415b4e084464.tar.gz
bcm5719-llvm-f864250517695aa05f4446d840ab415b4e084464.zip
[Attributes] Fix a bug in AttributeList::get so it can handle a mix of FunctionIndex and ReturnIndex/arg indices at the same time
The code uses the index of the last element in the sorted array to determine the maximum size needed for the vector. But if the last index is a FunctionIndex(~0), attrIdxToArrayIdx will return 0 and the vector will have size 1. If there are any indices before FunctionIndex, those values would return a value larger than 0 from attrIdxToArrayIdx. So in this case we need to look in front of the FunctionIndex to get the true size needed. Differential Revision: https://reviews.llvm.org/D45632 llvm-svn: 330136
Diffstat (limited to 'llvm/lib/DebugInfo/Symbolize/SymbolizableObjectFile.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud