1
0
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:
Jonas Devlieghere 2018-03-12 14:45:08 +00:00
parent 3a43ad0c9f
commit 152d382cd4

View File

@ -161,7 +161,7 @@ DWARFFormValue::getFixedByteSize(dwarf::Form Form,
return 0;
default:
llvm_unreachable("Handle this form in this switch statement");
break;
}
return None;
}