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);
   
_______________________________________________
svn-src-stable-9@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-stable-9
To unsubscribe, send any mail to "svn-src-stable-9-unsubscr...@freebsd.org"

Reply via email to