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.
2 parents 04b8712 + 80da9b6 commit a203aeeCopy full SHA for a203aee
lib/SILOptimizer/Analysis/SimplifyInstruction.cpp
@@ -167,9 +167,9 @@ visitUncheckedEnumDataInst(UncheckedEnumDataInst *UEDI) {
167
return SILValue();
168
}
169
170
-// Simplify
171
-// %1 = unchecked_enum_data %0 : $Optional<C>, #Optional.Some!enumelt.1 // user: %27
172
-// %2 = enum $Optional<C>, #Optional.Some!enumelt.1, %1 : $C // user: %28
+// Simplify:
+// %1 = unchecked_enum_data %0 : $Optional<C>, #Optional.Some!enumelt.1
+// %2 = enum $Optional<C>, #Optional.Some!enumelt.1, %1 : $C
173
// to %0 since we are building the same enum.
174
static SILValue simplifyEnumFromUncheckedEnumData(EnumInst *EI) {
175
assert(EI->hasOperand() && "Expected an enum with an operand!");
0 commit comments