summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-03-16 21:05:33 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-03-16 21:05:33 +0000
commit9255a5535a52da9ca96d804926538e858bcc8b0a (patch)
treefa8906cf4eca24c4d51d463fdab8f7705a44ef2b /llvm/lib/IR
parente9d379c038dbe57860290ee068cb18d13604b309 (diff)
downloadbcm5719-llvm-9255a5535a52da9ca96d804926538e858bcc8b0a.tar.gz
bcm5719-llvm-9255a5535a52da9ca96d804926538e858bcc8b0a.zip
Verifier: Simplify logic in processCallInst(), NFC
No need for local variables here. llvm-svn: 232413
Diffstat (limited to 'llvm/lib/IR')
-rw-r--r--llvm/lib/IR/Verifier.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/llvm/lib/IR/Verifier.cpp b/llvm/lib/IR/Verifier.cpp
index cc5fa690d58..5e2186d12a6 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<DbgDeclareInst>(&CI);
- Finder.processDeclare(*M, DDI);
+ case Intrinsic::dbg_declare:
+ Finder.processDeclare(*M, cast<DbgDeclareInst>(&CI));
break;
- }
- case Intrinsic::dbg_value: {
- auto *DVI = cast<DbgValueInst>(&CI);
- Finder.processValue(*M, DVI);
+ case Intrinsic::dbg_value:
+ Finder.processValue(*M, cast<DbgValueInst>(&CI));
break;
- }
default:
break;
}
OpenPOWER on IntegriCloud