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:
Duncan P. N. Exon Smith 2015-03-15 00:50:57 +00:00
parent 6fb58c4f7b
commit 959299e7d1
1 changed files with 3 additions and 3 deletions

View File

@ -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: {