From cbe6898be6eb05806486b5bae49c4936ad2a0b06 Mon Sep 17 00:00:00 2001 From: dim Date: Mon, 12 Dec 2016 00:09:08 +0000 Subject: [PATCH] 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. git-svn-id: svn://svn.freebsd.org/base/stable/9@309860 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- contrib/llvm/lib/Analysis/LazyValueInfo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/llvm/lib/Analysis/LazyValueInfo.cpp b/contrib/llvm/lib/Analysis/LazyValueInfo.cpp index dd0f4cc05..2fa6c8f06 100644 --- a/contrib/llvm/lib/Analysis/LazyValueInfo.cpp +++ b/contrib/llvm/lib/Analysis/LazyValueInfo.cpp @@ -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); -- 2.45.0