r186550 - Simplify logic by using the appropriate function.

Adrian Prantl aprantl at apple.com
Wed Jul 17 17:27:56 PDT 2013


Author: adrian
Date: Wed Jul 17 19:27:56 2013
New Revision: 186550

URL: http://llvm.org/viewvc/llvm-project?rev=186550&view=rev
Log:
Simplify logic by using the appropriate function.

Modified:
    cfe/trunk/lib/CodeGen/CGDebugInfo.cpp

Modified: cfe/trunk/lib/CodeGen/CGDebugInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGDebugInfo.cpp?rev=186550&r1=186549&r2=186550&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGDebugInfo.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGDebugInfo.cpp Wed Jul 17 19:27:56 2013
@@ -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);
 





More information about the cfe-commits mailing list