From cfca06d7963fa0909f90483b42a6d7d194d01e08 Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Sun, 26 Jul 2020 19:36:28 +0000 Subject: Vendor import of llvm-project master 2e10b7a39b9, the last commit before the llvmorg-12-init tag, from which release/11.x was branched. --- llvm/tools/llvm-diff/DiffConsumer.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'llvm/tools/llvm-diff/DiffConsumer.cpp') diff --git a/llvm/tools/llvm-diff/DiffConsumer.cpp b/llvm/tools/llvm-diff/DiffConsumer.cpp index b797143bde1b..6228ff2bae98 100644 --- a/llvm/tools/llvm-diff/DiffConsumer.cpp +++ b/llvm/tools/llvm-diff/DiffConsumer.cpp @@ -50,15 +50,15 @@ void DiffConsumer::printValue(Value *V, bool isL) { return; } if (V->getType()->isVoidTy()) { - if (isa(V)) { + if (auto *SI = dyn_cast(V)) { out << "store to "; - printValue(cast(V)->getPointerOperand(), isL); - } else if (isa(V)) { + printValue(SI->getPointerOperand(), isL); + } else if (auto *CI = dyn_cast(V)) { out << "call to "; - printValue(cast(V)->getCalledValue(), isL); - } else if (isa(V)) { + printValue(CI->getCalledOperand(), isL); + } else if (auto *II = dyn_cast(V)) { out << "invoke to "; - printValue(cast(V)->getCalledValue(), isL); + printValue(II->getCalledOperand(), isL); } else { out << *V; } -- cgit v1.2.3