| 390 | } |
| 391 | |
| 392 | static void |
| 393 | HandleBuiltinUnreachable(bool isFatal, struct CUnreachableData *pData) |
| 394 | { |
| 395 | char szLocation[LOCATION_MAXLEN]; |
| 396 | |
| 397 | ASSERT(pData); |
| 398 | |
| 399 | if (isAlreadyReported(&pData->mLocation)) |
| 400 | return; |
| 401 | |
| 402 | DeserializeLocation(szLocation, LOCATION_MAXLEN, &pData->mLocation); |
| 403 | |
| 404 | Report(isFatal, "UBSan: Undefined Behavior in %s, calling __builtin_unreachable()\n", |
| 405 | szLocation); |
| 406 | } |
| 407 | |
| 408 | static void |
| 409 | HandleTypeMismatch(bool isFatal, struct CSourceLocation *mLocation, struct CTypeDescriptor *mType, unsigned long mLogAlignment, uint8_t mTypeCheckKind, unsigned long ulPointer) |
no test coverage detected