projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6af266f
)
[TableGen] Remove unnecessary default constructed SMLoc that just existed to return...
author
Craig Topper
<craig.topper@gmail.com>
Mon, 8 Jun 2015 01:35:45 +0000
(
01:35
+0000)
committer
Craig Topper
<craig.topper@gmail.com>
Mon, 8 Jun 2015 01:35:45 +0000
(
01:35
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239277
91177308
-0d34-0410-b5e6-
96231b3b80d8
utils/TableGen/CTagsEmitter.cpp
patch
|
blob
|
history
diff --git
a/utils/TableGen/CTagsEmitter.cpp
b/utils/TableGen/CTagsEmitter.cpp
index 43915ccd0c71ed69cf553779933e2aac55b9a5de..35f4ad6dd5bf11188da78d304e4aadf452891017 100644
(file)
--- a/
utils/TableGen/CTagsEmitter.cpp
+++ b/
utils/TableGen/CTagsEmitter.cpp
@@
-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) {