From bb694de64964b4026ca1fb2ec2dcb5023d4923ac Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Sun, 13 Apr 2014 04:57:38 +0000 Subject: [C++11] More 'nullptr' conversion or in some cases just using a boolean check instead of comparing to nullptr. llvm-svn: 206129 --- llvm/lib/MC/MCFunction.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/MC/MCFunction.cpp') diff --git a/llvm/lib/MC/MCFunction.cpp b/llvm/lib/MC/MCFunction.cpp index 767e1e0f470..9066d31a40f 100644 --- a/llvm/lib/MC/MCFunction.cpp +++ b/llvm/lib/MC/MCFunction.cpp @@ -35,7 +35,7 @@ MCBasicBlock *MCFunction::find(uint64_t StartAddr) { for (const_iterator I = begin(), E = end(); I != E; ++I) if ((*I)->getInsts()->getBeginAddr() == StartAddr) return *I; - return 0; + return nullptr; } const MCBasicBlock *MCFunction::find(uint64_t StartAddr) const { -- cgit v1.2.3