forked from OSchip/llvm-project
Reorder this to make it easier to add more changes for a location set.
llvm-svn: 141730
This commit is contained in:
parent
6647b83087
commit
fb4cd4082c
|
@ -50,8 +50,10 @@ CGDebugInfo::~CGDebugInfo() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void CGDebugInfo::setLocation(SourceLocation Loc) {
|
void CGDebugInfo::setLocation(SourceLocation Loc) {
|
||||||
if (Loc.isValid())
|
// If the new location isn't valid return.
|
||||||
CurLoc = CGM.getContext().getSourceManager().getExpansionLoc(Loc);
|
if (!Loc.isValid()) return;
|
||||||
|
|
||||||
|
CurLoc = CGM.getContext().getSourceManager().getExpansionLoc(Loc);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// getContextDescriptor - Get context info for the decl.
|
/// getContextDescriptor - Get context info for the decl.
|
||||||
|
|
Loading…
Reference in New Issue