svn commit: r309860 - stable/9/contrib/llvm/lib/Analysis

Dimitry Andric dim at FreeBSD.org
Mon Dec 12 00:09:09 UTC 2016


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);
   


More information about the svn-src-stable-9 mailing list