]> granicus.if.org Git - clang/commitdiff
Simplify logic by using the appropriate function.
authorAdrian Prantl <aprantl@apple.com>
Thu, 18 Jul 2013 00:27:56 +0000 (00:27 +0000)
committerAdrian Prantl <aprantl@apple.com>
Thu, 18 Jul 2013 00:27:56 +0000 (00:27 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@186550 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGDebugInfo.cpp

index 54c70051179f71413e5ad573466e886370ca2abd..f735df5a29383f44df72d28746c5c3d32800896a 100644 (file)
@@ -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);