mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +01:00
Verifier: Simplify logic in processCallInst(), NFC
No need for local variables here. llvm-svn: 232413
This commit is contained in:
parent
edd9e25527
commit
2090bd958a
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user