forked from OSchip/llvm-project
Simplify logic by using the appropriate function.
llvm-svn: 186550
This commit is contained in:
parent
266288216a
commit
b1b3bfc068
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue