We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5d87f7 commit 1875361Copy full SHA for 1875361
lib/IRGen/GenCast.cpp
@@ -883,6 +883,7 @@ void irgen::emitScalarCheckedCast(IRGenFunction &IGF,
883
884
bool sourceWrappedInOptional = false;
885
886
+ llvm::Optional<ConditionalDominanceScope> domScope;
887
if (auto sourceOptObjectType = sourceLoweredType.getOptionalObjectType()) {
888
// Translate the value from an enum representation to a possibly-null
889
// representation. Note that we assume that this projection is safe
@@ -912,6 +913,7 @@ void irgen::emitScalarCheckedCast(IRGenFunction &IGF,
912
913
Builder.CreateCondBr(isNotNil, isNotNilContBB, nilMergeBB);
914
915
Builder.emitBlock(isNotNilContBB);
916
+ domScope.emplace(IGF);
917
}
918
919
0 commit comments