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:
Teresa Johnson 2016-08-26 20:07:15 +00:00
parent f14306b01e
commit 645ecb108a
1 changed files with 2 additions and 2 deletions

View File

@ -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 {