[llvm] r232292 - Verifier: Remove unnecessary null check
Duncan P. N. Exon Smith
dexonsmith at apple.com
Sat Mar 14 17:50:58 PDT 2015
Author: dexonsmith
Date: Sat Mar 14 19:50:57 2015
New Revision: 232292
URL: http://llvm.org/viewvc/llvm-project?rev=232292&view=rev
Log:
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.
Modified:
llvm/trunk/lib/IR/Verifier.cpp
Modified: llvm/trunk/lib/IR/Verifier.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/Verifier.cpp?rev=232292&r1=232291&r2=232292&view=diff
==============================================================================
--- llvm/trunk/lib/IR/Verifier.cpp (original)
+++ llvm/trunk/lib/IR/Verifier.cpp Sat Mar 14 19:50:57 2015
@@ -2795,10 +2795,10 @@ void Verifier::visitIntrinsicFunctionCal
"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: {
More information about the llvm-commits
mailing list