aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorWalter Erquinigo <wallace@fb.com>2022-03-21 15:46:19 -0700
committerWalter Erquinigo <wallace@fb.com>2022-03-21 16:03:37 -0700
commit31e44c01e3b5cc2cc7a9f1dc49806b3f050efb82 (patch)
treea2117c52b6df2f69c10ef6fde7f45e6caed05bcb /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parentf4b794427e8037a4e952cacdfe7201e961f31a6f (diff)
downloadllvm-31e44c01e3b5cc2cc7a9f1dc49806b3f050efb82.zip
llvm-31e44c01e3b5cc2cc7a9f1dc49806b3f050efb82.tar.gz
llvm-31e44c01e3b5cc2cc7a9f1dc49806b3f050efb82.tar.bz2
[trace] Use vector instead of ArrayRef when reading data
I incorrectly returned an ArrayRef when the underlying object didn't own the data. Instead, returning a vector<uint8_t> is what we should do. This fixes an issue when trying to access an intel-pt trace buffer larger than 16 MB. repro ``` go to a breakpoint thread trace start -s 16777216 n thread trace dump instructions # this doesn't fail anymore ``` Differential Revision: https://reviews.llvm.org/D122192
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions