Skip to content

Commit 466ff3e

Browse files
committed
[VPlan] Mark VPIRInstruction::getInstruction) as const (NFCI).
Split off from llvm#114292.
1 parent 96547de commit 466ff3e

File tree

1 file changed

+1
-1
lines changed
  • llvm/lib/Transforms/Vectorize

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Vectorize/VPlan.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1412,7 +1412,7 @@ class VPIRInstruction : public VPRecipeBase {
14121412
InstructionCost computeCost(ElementCount VF,
14131413
VPCostContext &Ctx) const override;
14141414

1415-
Instruction &getInstruction() { return I; }
1415+
Instruction &getInstruction() const { return I; }
14161416

14171417
#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
14181418
/// Print the recipe.

0 commit comments

Comments
 (0)