1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 02:33:06 +01:00

Use LLVM_BUILTIN_TRAP not __builtin_trap to appease windows builds. NFCI.

llvm-svn: 340162
This commit is contained in:
Simon Pilgrim 2018-08-20 09:49:20 +00:00
parent 63fb4fcb81
commit f58dd8e26b

View File

@ -42,6 +42,6 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {
std::string Input(reinterpret_cast<const char *>(Data), Size);
Input.erase(std::remove(Input.begin(), Input.end(), 0), Input.end());
if (!Input.empty() && llvm::yaml::isNumeric(Input) != isNumericRegex(Input))
__builtin_trap();
LLVM_BUILTIN_TRAP;
return 0;
}