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 d5804b3 commit e516aa1Copy full SHA for e516aa1
llvm/lib/Transforms/Utils/UnifyFunctionExitNodes.cpp
@@ -50,6 +50,11 @@ bool UnifyFunctionExitNodes::runOnFunction(Function &F) {
50
// Loop over all of the blocks in a function, tracking all of the blocks that
51
// return.
52
//
53
+
54
+ // PHINode can not handle aggregates returned by multiple value ret
55
+ // instructions. TODO: Handle each return value independently.
56
+ if (isa<StructType>(F.getReturnType()))
57
+ return false;
58
std::vector<BasicBlock*> ReturningBlocks;
59
std::vector<BasicBlock*> UnwindingBlocks;
60
std::vector<BasicBlock*> UnreachableBlocks;
0 commit comments