aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/LoopUtils.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2021-01-21 16:53:26 -0800
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2021-01-22 16:17:58 -0800
commitba5628f2c2a9de049b80b3e276f7e05f481c49e7 (patch)
tree08b15d5d5693966db67ab856238f80b6a5cd68b2 /llvm/lib/Transforms/Utils/LoopUtils.cpp
parent47e95e87a3e4f738635ff965616d4e2d96bf838a (diff)
downloadllvm-ba5628f2c2a9de049b80b3e276f7e05f481c49e7.zip
llvm-ba5628f2c2a9de049b80b3e276f7e05f481c49e7.tar.gz
llvm-ba5628f2c2a9de049b80b3e276f7e05f481c49e7.tar.bz2
ADT: Use 'using' to inherit assign and append in SmallString
Rather than reimplement, use a `using` declaration to bring in `SmallVectorImpl<char>`'s assign and append implementations in `SmallString`. The `SmallString` versions were missing reference invalidation assertions from `SmallVector`. This patch also fixes a bug in `llvm::FileCollector::addFileImpl`, which was a copy/paste from `clang::ModuleDependencyCollector::copyToRoot`, both caught by the no-longer-skipped assertions. As a drive-by, this also sinks the `const SmallVectorImpl&` versions of these methods down into `SmallVectorImpl`, since I imagine they'd be useful elsewhere. Differential Revision: https://reviews.llvm.org/D95202
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopUtils.cpp')
0 files changed, 0 insertions, 0 deletions