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 931b2262d4
commit bbd2d15d45
1 changed files with 1 additions and 1 deletions

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;
}