llvm.org GIT mirror llvm / 25c2921
SystemZISelLowering - supportedAddressingMode - silence static analyzer dyn_cast<> null dereference warning. NFCI. The static analyzer is warning about a potential null dereference, but we should be able to use cast<> directly and if not assert will fire for us. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@375430 91177308-0d34-0410-b5e6-96231b3b80d8 Simon Pilgrim 1 year, 1 month ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
846846 }
847847
848848 if (isa(I) && I->hasOneUse()) {
849 auto *SingleUser = dyn_cast(*I->user_begin());
849 auto *SingleUser = cast(*I->user_begin());
850850 if (SingleUser->getParent() == I->getParent()) {
851851 if (isa(SingleUser)) {
852852 if (auto *C = dyn_cast(SingleUser->getOperand(1)))