projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bd1f063
)
Use auto for obvious types.
author
Rui Ueyama
<ruiu@google.com>
Sun, 20 Nov 2016 02:43:44 +0000
(
02:43
+0000)
committer
Rui Ueyama
<ruiu@google.com>
Sun, 20 Nov 2016 02:43:44 +0000
(
02:43
+0000)
llvm-svn: 287481
lld/ELF/ICF.cpp
patch
|
blob
|
history
diff --git
a/lld/ELF/ICF.cpp
b/lld/ELF/ICF.cpp
index
77f1c9a
..
229c07a
100644
(file)
--- a/
lld/ELF/ICF.cpp
+++ b/
lld/ELF/ICF.cpp
@@
-194,8
+194,8
@@
static bool variableEq(const InputSection<ELFT> *A, ArrayRef<RelTy> RelsA,
return false;
if (DA->Value != DB->Value)
return false;
-
InputSection<ELFT>
*X = dyn_cast<InputSection<ELFT>>(DA->Section);
-
InputSection<ELFT>
*Y = dyn_cast<InputSection<ELFT>>(DB->Section);
+
auto
*X = dyn_cast<InputSection<ELFT>>(DA->Section);
+
auto
*Y = dyn_cast<InputSection<ELFT>>(DB->Section);
return X && Y && X->GroupId && X->GroupId == Y->GroupId;
};