Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Dec 2016 00:09:08 +0000 (UTC)
From:      Dimitry Andric <dim@FreeBSD.org>
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
Message-ID:  <201612120009.uBC098pX013254@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
   



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201612120009.uBC098pX013254>