Skip to content

Commit 99ceda0

Browse files
committed
---
yaml --- r: 345051 b: refs/heads/master c: 4ed8301 h: refs/heads/master i: 345049: fa9fc2a 345047: 8e9812b
1 parent 8de69f9 commit 99ceda0

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 474ae3bad9c94811b9f32c74b924c82963862dfc
2+
refs/heads/master: 4ed8301eb0e9494eb26b66109e0e1c6c09c216f9
33
refs/heads/master-next: 203b3026584ecad859eb328b2e12490099409cd5
44
refs/tags/osx-passed: b6b74147ef8a386f532cf9357a1bde006e552c54
55
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-a: 6bb18e013c2284f2b45f5f84f2df2887dc0f7dea

trunk/lib/SILOptimizer/Transforms/SpeculativeDevirtualizer.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,8 +218,11 @@ static FullApplySite speculateMonomorphicTarget(FullApplySite AI,
218218
NumTargetsPredicted++;
219219

220220
// Devirtualize the apply instruction on the identical path.
221-
assert(devirtualizeClassMethod(IdenAI, DownCastedClassInstance, nullptr) &&
222-
"Expected to be able to devirtualize apply!");
221+
auto NewInst =
222+
devirtualizeClassMethod(IdenAI, DownCastedClassInstance, nullptr);
223+
assert(NewInst && "Expected to be able to devirtualize apply!");
224+
(void)NewInst;
225+
223226
deleteDevirtualizedApply(IdenAI);
224227

225228
// Split critical edges resulting from VirtAI.

0 commit comments

Comments
 (0)