From fa98a04f6840568eb4c1dc057ac03d0914d0c08f Mon Sep 17 00:00:00 2001 From: Peter Collingbourne Date: Wed, 21 Dec 2016 19:00:47 +0000 Subject: [PATCH] TypeMetadataUtils: Simplify; spotted by Mehdi. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@290264 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Analysis/TypeMetadataUtils.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/Analysis/TypeMetadataUtils.cpp b/lib/Analysis/TypeMetadataUtils.cpp index 31e2b42075d..f5675416736 100644 --- a/lib/Analysis/TypeMetadataUtils.cpp +++ b/lib/Analysis/TypeMetadataUtils.cpp @@ -69,8 +69,7 @@ void llvm::findDevirtualizableCallsForTypeTest( // Find llvm.assume intrinsics for this llvm.type.test call. for (const Use &CIU : CI->uses()) { - auto AssumeCI = dyn_cast(CIU.getUser()); - if (AssumeCI) { + if (auto *AssumeCI = dyn_cast(CIU.getUser())) { Function *F = AssumeCI->getCalledFunction(); if (F && F->getIntrinsicID() == Intrinsic::assume) Assumes.push_back(AssumeCI);