OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d364009
)
TypeMetadataUtils: Simplify; spotted by Mehdi.
author
Peter Collingbourne
<peter@pcc.me.uk>
Wed, 21 Dec 2016 19:00:47 +0000
(19:00 +0000)
committer
Peter Collingbourne
<peter@pcc.me.uk>
Wed, 21 Dec 2016 19:00:47 +0000
(19:00 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@290264
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Analysis/TypeMetadataUtils.cpp
patch
|
blob
|
history
diff --git
a/lib/Analysis/TypeMetadataUtils.cpp
b/lib/Analysis/TypeMetadataUtils.cpp
index
31e2b42
..
f567541
100644
(file)
--- 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<CallInst>(CIU.getUser());
- if (AssumeCI) {
+ if (auto *AssumeCI = dyn_cast<CallInst>(CIU.getUser())) {
Function *F = AssumeCI->getCalledFunction();
if (F && F->getIntrinsicID() == Intrinsic::assume)
Assumes.push_back(AssumeCI);