mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
TypeMetadataUtils: Simplify; spotted by Mehdi.
llvm-svn: 290264
This commit is contained in:
parent
a41e8ef728
commit
bcede1cf8e
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user