[llvm] 146dc25 - [IR] InstrTypes.h - operandBundleFromBundleOpInfo - specialise auto to const auto*
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Sun Jan 29 10:04:10 PST 2023
Author: Simon Pilgrim
Date: 2023-01-29T18:03:53Z
New Revision: 146dc25aa31b3cbdf2db83810e9459e8a833371a
URL: https://github.com/llvm/llvm-project/commit/146dc25aa31b3cbdf2db83810e9459e8a833371a
DIFF: https://github.com/llvm/llvm-project/commit/146dc25aa31b3cbdf2db83810e9459e8a833371a.diff
LOG: [IR] InstrTypes.h - operandBundleFromBundleOpInfo - specialise auto to const auto*
Fixes clang-tidy warning
Added:
Modified:
llvm/include/llvm/IR/InstrTypes.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/IR/InstrTypes.h b/llvm/include/llvm/IR/InstrTypes.h
index 50093c8246c98..49b034c00143e 100644
--- a/llvm/include/llvm/IR/InstrTypes.h
+++ b/llvm/include/llvm/IR/InstrTypes.h
@@ -2140,7 +2140,7 @@ class CallBase : public Instruction {
/// OperandBundleUse.
OperandBundleUse
operandBundleFromBundleOpInfo(const BundleOpInfo &BOI) const {
- auto begin = op_begin();
+ const auto *begin = op_begin();
ArrayRef<Use> Inputs(begin + BOI.Begin, begin + BOI.End);
return OperandBundleUse(BOI.Tag, Inputs);
}
More information about the llvm-commits
mailing list