diff --git a/contrib/llvm-project/clang/lib/Driver/ToolChains/Arch/X86.cpp b/contrib/llvm-project/clang/lib/Driver/ToolChains/Arch/X86.cpp index 32a5c0051e9..ccc437837fe 100644 --- a/contrib/llvm-project/clang/lib/Driver/ToolChains/Arch/X86.cpp +++ b/contrib/llvm-project/clang/lib/Driver/ToolChains/Arch/X86.cpp @@ -94,6 +94,7 @@ const char *x86::getX86TargetCPU(const ArgList &Args, switch (Triple.getOS()) { case llvm::Triple::FreeBSD: + case llvm::Triple::MidnightBSD: return "i686"; case llvm::Triple::NetBSD: case llvm::Triple::OpenBSD: diff --git a/contrib/llvm-project/clang/lib/Frontend/InitHeaderSearch.cpp b/contrib/llvm-project/clang/lib/Frontend/InitHeaderSearch.cpp index 5d877ee9c0d..593f0ec1e61 100644 --- a/contrib/llvm-project/clang/lib/Frontend/InitHeaderSearch.cpp +++ b/contrib/llvm-project/clang/lib/Frontend/InitHeaderSearch.cpp @@ -225,6 +225,7 @@ void InitHeaderSearch::AddDefaultCIncludePaths(const llvm::Triple &triple, switch (os) { case llvm::Triple::CloudABI: case llvm::Triple::FreeBSD: + case llvm::Triple::MidnightBSD: case llvm::Triple::NetBSD: case llvm::Triple::OpenBSD: case llvm::Triple::NaCl: diff --git a/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp b/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp index 09306383d53..7477e9141fc 100644 --- a/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp +++ b/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp @@ -985,7 +985,7 @@ llvm::Optional MallocChecker::performKernelMalloc( llvm::Triple::OSType OS = Ctx.getTargetInfo().getTriple().getOS(); if (!KernelZeroFlagVal.hasValue()) { - if (OS == llvm::Triple::FreeBSD) + if (OS == llvm::Triple::FreeBSD || OS == llvm::Triple::MidnightBSD) KernelZeroFlagVal = 0x0100; else if (OS == llvm::Triple::NetBSD) KernelZeroFlagVal = 0x0002;