Simplify logic by using the appropriate function.

llvm-svn: 186550
This commit is contained in:
Adrian Prantl 2013-07-18 00:27:56 +00:00
parent 266288216a
commit b1b3bfc068
1 changed files with 1 additions and 1 deletions

View 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);