forked from OSchip/llvm-project
Verifier: Remove unnecessary null check
This is already assumed to be non-null above due to a dyn_cast<>. Also remove extraneous braces around statement. llvm-svn: 232292
This commit is contained in:
parent
6fb58c4f7b
commit
959299e7d1
|
@ -2795,10 +2795,10 @@ void Verifier::visitIntrinsicFunctionCall(Intrinsic::ID ID, CallInst &CI) {
|
|||
"constant int",
|
||||
&CI);
|
||||
break;
|
||||
case Intrinsic::dbg_declare: { // llvm.dbg.declare
|
||||
Assert(CI.getArgOperand(0) && isa<MetadataAsValue>(CI.getArgOperand(0)),
|
||||
case Intrinsic::dbg_declare: // llvm.dbg.declare
|
||||
Assert(isa<MetadataAsValue>(CI.getArgOperand(0)),
|
||||
"invalid llvm.dbg.declare intrinsic call 1", &CI);
|
||||
} break;
|
||||
break;
|
||||
case Intrinsic::memcpy:
|
||||
case Intrinsic::memmove:
|
||||
case Intrinsic::memset: {
|
||||
|
|
Loading…
Reference in New Issue