forked from OSchip/llvm-project
Streamline LTO getComdat invocation (NFC)
We already have obtained a pointer to the underlying GlobalObject, use it directly to find the comdat, rather than using the GlobalValue::getComdat which will do the same thing again. llvm-svn: 279856
This commit is contained in:
parent
f14306b01e
commit
645ecb108a
|
@ -174,8 +174,8 @@ public:
|
||||||
} else {
|
} else {
|
||||||
GO = cast<GlobalObject>(GV);
|
GO = cast<GlobalObject>(GV);
|
||||||
}
|
}
|
||||||
if (GV)
|
if (GO)
|
||||||
return GV->getComdat();
|
return GO->getComdat();
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
uint64_t getCommonSize() const {
|
uint64_t getCommonSize() const {
|
||||||
|
|
Loading…
Reference in New Issue