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 7fb4815 commit 27f670bCopy full SHA for 27f670b
lib/SILOptimizer/Mandatory/DIMemoryUseCollector.h
@@ -98,11 +98,8 @@ class DIMemoryObjectInfo {
98
/// instruction. For alloc_box though it returns the project_box associated
99
/// with the memory info.
100
SingleValueInstruction *getUninitializedValue() const {
101
- if (auto *mui = dyn_cast<MarkUninitializedInst>(MemoryInst)) {
102
- if (auto *pbi = mui->getSingleUserOfType<ProjectBoxInst>()) {
103
- return pbi;
104
- }
105
+ if (auto *pbi = MemoryInst->getSingleUserOfType<ProjectBoxInst>())
+ return pbi;
106
return MemoryInst;
107
}
108
0 commit comments