[TableGen] Remove unnecessary default constructed SMLoc that just existed to return. Instead just call the default constructor in the return.
llvm-svn: 239277
This commit is contained in:
parent
e78e7c74dc
commit
1797bda23a
|
@ -59,11 +59,7 @@ private:
|
|||
|
||||
SMLoc CTagsEmitter::locate(const Record *R) {
|
||||
ArrayRef<SMLoc> Locs = R->getLoc();
|
||||
if (Locs.empty()) {
|
||||
SMLoc NullLoc;
|
||||
return NullLoc;
|
||||
}
|
||||
return Locs.front();
|
||||
return !Locs.empty() ? Locs.front() : SMLoc();
|
||||
}
|
||||
|
||||
void CTagsEmitter::run(raw_ostream &OS) {
|
||||
|
|
Loading…
Reference in New Issue