1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-26 04:32:44 +01:00

[VPlan] Mark overriden function in VPWidenPHIRecipe as virtual.

VPReductionRecipe overrides those implementations. Mark them as virtual
in the VPWidenPHIRecipe to unbreak build in certain configurations.
This commit is contained in:
Florian Hahn 2021-07-06 11:59:33 +01:00
parent d1df2cf22b
commit 47d904c90f

View File

@ -1073,7 +1073,7 @@ public:
addOperand(&Start);
}
~VPWidenPHIRecipe() override = default;
virtual ~VPWidenPHIRecipe() override = default;
/// Method to support type inquiry through isa, cast, and dyn_cast.
static inline bool classof(const VPRecipeBase *B) {
@ -1086,12 +1086,12 @@ public:
}
/// Generate the phi/select nodes.
void execute(VPTransformState &State) override;
virtual void execute(VPTransformState &State) override;
#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
/// Print the recipe.
void print(raw_ostream &O, const Twine &Indent,
VPSlotTracker &SlotTracker) const override;
virtual void print(raw_ostream &O, const Twine &Indent,
VPSlotTracker &SlotTracker) const override;
#endif
/// Returns the start value of the phi, if it is a reduction or first-order