mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
AMDGPU: Error in SIAnnotateControlFlow instead of assert
This assert typically happens if an unstructured CFG is passed to the pass. This can happen if the pass is run independently without the structurizer. llvm-svn: 322685
This commit is contained in:
parent
7b92eaa80a
commit
f1ef4bbf8f
@ -422,7 +422,11 @@ bool SIAnnotateControlFlow::runOnFunction(Function &F) {
|
||||
openIf(Term);
|
||||
}
|
||||
|
||||
assert(Stack.empty());
|
||||
if (!Stack.empty()) {
|
||||
// CFG was probably not structured.
|
||||
report_fatal_error("failed to annotate CFG");
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user