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 f9afdfc commit ac4920eCopy full SHA for ac4920e
src/engine/internal/llvm/llvmtypeanalyzer.cpp
@@ -269,18 +269,14 @@ LLVMInstruction *LLVMTypeAnalyzer::branchStart(LLVMInstruction *end) const
269
LLVMInstruction *ins = end->previous;
270
int level = 0;
271
272
- while (ins && !((isLoopStart(ins) || isIfStart(ins)) && level == 0)) {
+ while (ins && !((isLoopStart(ins) || isIfStart(ins) || isElse(ins)) && level == 0)) {
273
if (isLoopStart(ins) || isIfStart(ins)) {
274
assert(level > 0);
275
level--;
276
}
277
278
- if (isLoopEnd(ins) || isIfEnd(ins) || isElse(ins)) {
279
- if (isElse(ins) && level == 0)
280
- break;
281
-
+ if (isLoopEnd(ins) || isIfEnd(ins))
282
level++;
283
- }
284
285
ins = ins->previous;
286
};
0 commit comments