mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 12:43:36 +01:00
[DebugInfo] Replace unreachable with None
Invalid user input should not trigger assertions and unreachables. We already return an Option so we should just return None here. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=5532 llvm-svn: 327274
This commit is contained in:
parent
3a43ad0c9f
commit
152d382cd4
@ -161,7 +161,7 @@ DWARFFormValue::getFixedByteSize(dwarf::Form Form,
|
||||
return 0;
|
||||
|
||||
default:
|
||||
llvm_unreachable("Handle this form in this switch statement");
|
||||
break;
|
||||
}
|
||||
return None;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user