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 {
|
||||
GO = cast<GlobalObject>(GV);
|
||||
}
|
||||
if (GV)
|
||||
return GV->getComdat();
|
||||
if (GO)
|
||||
return GO->getComdat();
|
||||
return nullptr;
|
||||
}
|
||||
uint64_t getCommonSize() const {
|
||||
|
|
Loading…
Reference in New Issue