================ @@ -1481,22 +1449,24 @@ class Return : public Terminator { return Vs.reduceReturn(*this, Ne); } - template <class C> - typename C::CType compare(const Return *E, C &Cmp) const { + template <class C> typename C::CType compare(const Return *E, C &Cmp) const { return Cmp.compare(Retval, E->Retval); } private: - SExpr* Retval; + SExpr *Retval; }; -inline ArrayRef<BasicBlock*> Terminator::successors() { +inline ArrayRef<BasicBlock *> Terminator::successors() { switch (opcode()) { - case COP_Goto: return cast<Goto>(this)->successors(); - case COP_Branch: return cast<Branch>(this)->successors(); - case COP_Return: return cast<Return>(this)->successors(); - default: - return std::nullopt; + case COP_Goto: + return cast<Goto>(this)->successors(); + case COP_Branch: + return cast<Branch>(this)->successors(); + case COP_Return: + return cast<Return>(this)->successors(); + default: + return std::nullopt; ---------------- steakhal wrote:
This was aligned before, but I don't see much value keeping it. https://github.com/llvm/llvm-project/pull/82599 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits