================ @@ -920,8 +925,8 @@ class BlockAddress final : public Constant { /// Transparently provide more efficient getOperand methods. DECLARE_TRANSPARENT_OPERAND_ACCESSORS(Value); - Function *getFunction() const { return (Function *)Op<0>().get(); } - BasicBlock *getBasicBlock() const { return (BasicBlock *)Op<1>().get(); } + BasicBlock *getBasicBlock() const { return (BasicBlock *)Op<0>().get(); } ---------------- arsenm wrote:
`cast` or `static_cast`? https://github.com/llvm/llvm-project/pull/137958 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits