From 30c855d42aa26a9d49c623f51707df0bb39d655b Mon Sep 17 00:00:00 2001 From: Michael Liao Date: Fri, 11 Oct 2019 14:09:44 +0000 Subject: Fix compilation warnings. NFC. llvm-svn: 374554 --- llvm/lib/Transforms/IPO/GlobalDCE.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Transforms') diff --git a/llvm/lib/Transforms/IPO/GlobalDCE.cpp b/llvm/lib/Transforms/IPO/GlobalDCE.cpp index 0b14229ac62..466d18896ed 100644 --- a/llvm/lib/Transforms/IPO/GlobalDCE.cpp +++ b/llvm/lib/Transforms/IPO/GlobalDCE.cpp @@ -189,7 +189,7 @@ void GlobalDCEPass::ScanVTables(Module &M) { // unit, we know that we can see all virtual functions which might use it, // so VFE is safe. if (auto GO = dyn_cast(&GV)) { - GlobalObject::VCallVisibility TypeVis = GV.getVCallVisibility(); + GlobalObject::VCallVisibility TypeVis = GO->getVCallVisibility(); if (TypeVis == GlobalObject::VCallVisibilityTranslationUnit || (LTOPostLink && TypeVis == GlobalObject::VCallVisibilityLinkageUnit)) { -- cgit v1.2.3