Differential Revision: https://reviews.llvm.org/D93480
This commit is contained in:
Christian Sigg
2020-12-17 20:35:48 +01:00
parent 8c6d516286
commit 58f2b765eb

View File

@@ -327,6 +327,7 @@ static Value getPHISourceValue(Block *current, Block *pred,
assert(std::adjacent_find(successors.begin(), successors.end()) ==
successors.end() &&
"successors with arguments in LLVM branches must be different blocks");
(void)successors;
// For instructions that branch based on a condition value, we need to take
// the operands for the branch that was taken.