]> granicus.if.org Git - clang/commitdiff
NetBSD, OpenBSD, and Dragonfly BSD also have arc4random. Patch from
authorDouglas Gregor <dgregor@apple.com>
Mon, 17 Jan 2011 19:16:24 +0000 (19:16 +0000)
committerDouglas Gregor <dgregor@apple.com>
Mon, 17 Jan 2011 19:16:24 +0000 (19:16 +0000)
Joerg Sonnenberger!

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@123669 91177308-0d34-0410-b5e6-96231b3b80d8

lib/StaticAnalyzer/Checkers/CheckSecuritySyntaxOnly.cpp

index b30e985f38a55a1983baccb55350ae8b0482c692..b3a234f11a737d2a68e8dba5191c083cf2d6fcb6 100644 (file)
@@ -23,7 +23,10 @@ using namespace ento;
 static bool isArc4RandomAvailable(const ASTContext &Ctx) {
   const llvm::Triple &T = Ctx.Target.getTriple();
   return T.getVendor() == llvm::Triple::Apple ||
-         T.getOS() == llvm::Triple::FreeBSD;
+         T.getOS() == llvm::Triple::FreeBSD ||
+         T.getOS() == llvm::Triple::NetBSD ||
+         T.getOS() == llvm::Triple::OpenBSD ||
+         T.getOS() == llvm::Triple::DragonFly;
 }
 
 namespace {