aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/ProfileData/SampleProf.cpp
diff options
context:
space:
mode:
authorpeter klausler <pklausler@nvidia.com>2021-06-15 15:09:04 -0700
committerpeter klausler <pklausler@nvidia.com>2021-06-16 10:26:25 -0700
commit8ba9ee46e465a56a54f8361703d3af7f4bc98d63 (patch)
treebce830abb649f1e67befac92ef1e04f9908f361e /llvm/lib/ProfileData/SampleProf.cpp
parent773ad55a393f368cc92b1611c52e493ed45a353f (diff)
downloadllvm-8ba9ee46e465a56a54f8361703d3af7f4bc98d63.zip
llvm-8ba9ee46e465a56a54f8361703d3af7f4bc98d63.tar.gz
llvm-8ba9ee46e465a56a54f8361703d3af7f4bc98d63.tar.bz2
[flang] Correct the subscripts used for arguments to character intrinsics
When chasing down another unrelated bug, I noticed that the implementations of various character intrinsic functions assume that the lower bounds of (some of) their arguments were 1. This isn't necessarily the case, so I've cleaned them up, tweaked the unit tests to exercise the fix, and regularized the allocation pattern used for results to use SetBounds() before Allocate() rather than the old original Descriptor::Allocate() wrapper around CFI_allocate(). Since there were few other remaining uses of the old original Descriptor::Allocate() wrapper, I also converted them to the new one and deleted the old one. Differential Revision: https://reviews.llvm.org/D104325
Diffstat (limited to 'llvm/lib/ProfileData/SampleProf.cpp')
0 files changed, 0 insertions, 0 deletions