From: Adrian Prantl Date: Thu, 18 Jul 2013 00:27:56 +0000 (+0000) Subject: Simplify logic by using the appropriate function. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5f4554f8c8f07c90048705f165fe1ed44413eaa2;p=clang Simplify logic by using the appropriate function. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@186550 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CGDebugInfo.cpp b/lib/CodeGen/CGDebugInfo.cpp index 54c7005117..f735df5a29 100644 --- a/lib/CodeGen/CGDebugInfo.cpp +++ b/lib/CodeGen/CGDebugInfo.cpp @@ -53,7 +53,7 @@ CGDebugInfo::~CGDebugInfo() { void CGDebugInfo::setLocation(SourceLocation Loc) { // If the new location isn't valid return. - if (!Loc.isValid()) return; + if (Loc.isInvalid()) return; CurLoc = CGM.getContext().getSourceManager().getExpansionLoc(Loc);