From 9255a5535a52da9ca96d804926538e858bcc8b0a Mon Sep 17 00:00:00 2001 From: "Duncan P. N. Exon Smith" Date: Mon, 16 Mar 2015 21:05:33 +0000 Subject: [PATCH] Verifier: Simplify logic in processCallInst(), NFC No need for local variables here. llvm-svn: 232413 --- llvm/lib/IR/Verifier.cpp | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/llvm/lib/IR/Verifier.cpp b/llvm/lib/IR/Verifier.cpp index cc5fa69..5e2186d 100644 --- a/llvm/lib/IR/Verifier.cpp +++ b/llvm/lib/IR/Verifier.cpp @@ -3075,16 +3075,12 @@ void DebugInfoVerifier::processCallInst(DebugInfoFinder &Finder, if (Function *F = CI.getCalledFunction()) if (Intrinsic::ID ID = (Intrinsic::ID)F->getIntrinsicID()) switch (ID) { - case Intrinsic::dbg_declare: { - auto *DDI = cast(&CI); - Finder.processDeclare(*M, DDI); + case Intrinsic::dbg_declare: + Finder.processDeclare(*M, cast(&CI)); break; - } - case Intrinsic::dbg_value: { - auto *DVI = cast(&CI); - Finder.processValue(*M, DVI); + case Intrinsic::dbg_value: + Finder.processValue(*M, cast(&CI)); break; - } default: break; } -- 2.7.4