Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Dec 2016 17:27:44 +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-10@freebsd.org
Subject:   svn commit: r310082 - stable/10/contrib/llvm/lib/Analysis
Message-ID:  <201612141727.uBEHRi6V024506@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dim
Date: Wed Dec 14 17:27:44 2016
New Revision: 310082
URL: https://svnweb.freebsd.org/changeset/base/310082

Log:
  Merge r309860 from stable/9, as this also applies to stable/10:
  
  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/10/contrib/llvm/lib/Analysis/LazyValueInfo.cpp
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/contrib/llvm/lib/Analysis/LazyValueInfo.cpp
==============================================================================
--- stable/10/contrib/llvm/lib/Analysis/LazyValueInfo.cpp	Wed Dec 14 17:17:07 2016	(r310081)
+++ stable/10/contrib/llvm/lib/Analysis/LazyValueInfo.cpp	Wed Dec 14 17:27:44 2016	(r310082)
@@ -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?201612141727.uBEHRi6V024506>