From owner-svn-src-stable@freebsd.org Mon Dec 12 00:09:09 2016 Return-Path: Delivered-To: svn-src-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 768BCC72BBB; Mon, 12 Dec 2016 00:09:09 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 45B2F7B; Mon, 12 Dec 2016 00:09:09 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id uBC0982F013255; Mon, 12 Dec 2016 00:09:08 GMT (envelope-from dim@FreeBSD.org) Received: (from dim@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id uBC098pX013254; Mon, 12 Dec 2016 00:09:08 GMT (envelope-from dim@FreeBSD.org) Message-Id: <201612120009.uBC098pX013254@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: dim set sender to dim@FreeBSD.org using -f From: Dimitry Andric Date: Mon, 12 Dec 2016 00:09:08 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org Subject: svn commit: r309860 - stable/9/contrib/llvm/lib/Analysis X-SVN-Group: stable-9 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-stable@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for all the -stable branches of the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Dec 2016 00:09:09 -0000 Author: dim Date: Mon Dec 12 00:09:08 2016 New Revision: 309860 URL: https://svnweb.freebsd.org/changeset/base/309860 Log: Fix libllvmanalysis build failure after r309857: on stable/9, llvm is compiled by gcc, and without -std=c++11, so the nullptr keyword is unknown. Use the old-school plain zero syntax instead. Modified: stable/9/contrib/llvm/lib/Analysis/LazyValueInfo.cpp Modified: stable/9/contrib/llvm/lib/Analysis/LazyValueInfo.cpp ============================================================================== --- stable/9/contrib/llvm/lib/Analysis/LazyValueInfo.cpp Sun Dec 11 23:36:11 2016 (r309859) +++ stable/9/contrib/llvm/lib/Analysis/LazyValueInfo.cpp Mon Dec 12 00:09:08 2016 (r309860) @@ -1051,7 +1051,7 @@ static bool isKnownNonConstant(Value *V) Constant *LazyValueInfo::getConstant(Value *V, BasicBlock *BB) { // Bail out early if V is known not to be a Constant. if (isKnownNonConstant(V)) - return nullptr; + return 0; LVILatticeVal Result = getCache(PImpl).getValueInBlock(V, BB);