We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 09370c2 commit d1999abCopy full SHA for d1999ab
llvm/include/llvm/IR/Constants.h
@@ -925,7 +925,7 @@ class BlockAddress final : public Constant {
925
/// Transparently provide more efficient getOperand methods.
926
DECLARE_TRANSPARENT_OPERAND_ACCESSORS(Value);
927
928
- BasicBlock *getBasicBlock() const { return (BasicBlock *)Op<0>().get(); }
+ BasicBlock *getBasicBlock() const { return cast<BasicBlock>(Op<0>().get()); }
929
Function *getFunction() const { return getBasicBlock()->getParent(); }
930
931
/// Methods for support type inquiry through isa, cast, and dyn_cast:
0 commit comments