From b1b3bfc0681b8f0335342c8d85ec6e7d9000c3c4 Mon Sep 17 00:00:00 2001 From: Adrian Prantl Date: Thu, 18 Jul 2013 00:27:56 +0000 Subject: [PATCH] Simplify logic by using the appropriate function. llvm-svn: 186550 --- clang/lib/CodeGen/CGDebugInfo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp index 54c70051179f..f735df5a2938 100644 --- a/clang/lib/CodeGen/CGDebugInfo.cpp +++ b/clang/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);