From: Duncan P. N. Exon Smith Date: Sun, 15 Mar 2015 00:50:57 +0000 (+0000) Subject: Verifier: Remove unnecessary null check X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=ca7e7b0212bc382d7eadfb5029bf8931ee651c2c;p=oota-llvm.git 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@232292 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/IR/Verifier.cpp b/lib/IR/Verifier.cpp index d660530db1d..1e1355000e8 100644 --- a/lib/IR/Verifier.cpp +++ b/lib/IR/Verifier.cpp @@ -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(CI.getArgOperand(0)), + case Intrinsic::dbg_declare: // llvm.dbg.declare + Assert(isa(CI.getArgOperand(0)), "invalid llvm.dbg.declare intrinsic call 1", &CI); - } break; + break; case Intrinsic::memcpy: case Intrinsic::memmove: case Intrinsic::memset: {