From 2617dccea2721fd74677f0a7bcf5a768238421d0 Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Tue, 15 Apr 2014 06:32:26 +0000 Subject: [C++11] More 'nullptr' conversion. In some cases just using a boolean check instead of comparing to nullptr. llvm-svn: 206252 --- llvm/lib/IR/MDBuilder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/IR/MDBuilder.cpp') diff --git a/llvm/lib/IR/MDBuilder.cpp b/llvm/lib/IR/MDBuilder.cpp index 1d8a83d..65cdf38 100644 --- a/llvm/lib/IR/MDBuilder.cpp +++ b/llvm/lib/IR/MDBuilder.cpp @@ -23,7 +23,7 @@ MDString *MDBuilder::createString(StringRef Str) { MDNode *MDBuilder::createFPMath(float Accuracy) { if (Accuracy == 0.0) - return 0; + return nullptr; assert(Accuracy > 0.0 && "Invalid fpmath accuracy!"); Value *Op = ConstantFP::get(Type::getFloatTy(Context), Accuracy); return MDNode::get(Context, Op); -- cgit v1.1