aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorRahul Joshi <rjoshi@nvidia.com>2025-05-12 16:17:43 -0700
committerGitHub <noreply@github.com>2025-05-12 16:17:43 -0700
commit86c5112409d51620663cf59afeaf5c3a4017eded (patch)
tree30d7dc6963fdd315bcde41b39449ac733cf9ee4b /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parent2b934cba3b18ed0137b0df05517c7adcc9dba760 (diff)
downloadllvm-86c5112409d51620663cf59afeaf5c3a4017eded.zip
llvm-86c5112409d51620663cf59afeaf5c3a4017eded.tar.gz
llvm-86c5112409d51620663cf59afeaf5c3a4017eded.tar.bz2
[NFCI][LLVM/MLIR] Adopt `TrailingObjects` convenience API (#138554)
Adopt `TrailingObjects` convenience API that was added in https://github.com/llvm/llvm-project/pull/138970 in LLVM and MLIR code.
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
-rw-r--r--llvm/lib/Bitcode/Reader/BitcodeReader.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
index 1e07f06..64f9638 100644
--- a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
+++ b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
@@ -542,7 +542,7 @@ private:
: Value(Ty, SubclassID), Opcode(Info.Opcode), Flags(Info.Flags),
NumOperands(OpIDs.size()), BlockAddressBB(Info.BlockAddressBB),
SrcElemTy(Info.SrcElemTy), InRange(Info.InRange) {
- llvm::uninitialized_copy(OpIDs, getTrailingObjects<unsigned>());
+ llvm::uninitialized_copy(OpIDs, getTrailingObjects());
}
BitcodeConstant &operator=(const BitcodeConstant &) = delete;
@@ -559,7 +559,7 @@ public:
static bool classof(const Value *V) { return V->getValueID() == SubclassID; }
ArrayRef<unsigned> getOperandIDs() const {
- return ArrayRef(getTrailingObjects<unsigned>(), NumOperands);
+ return ArrayRef(getTrailingObjects(), NumOperands);
}
std::optional<ConstantRange> getInRange() const {