File tree 1 file changed +3
-12
lines changed
1 file changed +3
-12
lines changed Original file line number Diff line number Diff line change @@ -1814,10 +1814,7 @@ Expected<bool> FunctionImporter::importFunctions(
1814
1814
continue ;
1815
1815
auto GUID = F.getGUID ();
1816
1816
auto MaybeImportType = getImportType (ImportGUIDs, GUID);
1817
-
1818
- bool ImportDefinition =
1819
- (MaybeImportType &&
1820
- (*MaybeImportType == GlobalValueSummary::Definition));
1817
+ bool ImportDefinition = MaybeImportType == GlobalValueSummary::Definition;
1821
1818
1822
1819
LLVM_DEBUG (dbgs () << (MaybeImportType ? " Is" : " Not" )
1823
1820
<< " importing function"
@@ -1853,10 +1850,7 @@ Expected<bool> FunctionImporter::importFunctions(
1853
1850
continue ;
1854
1851
auto GUID = GV.getGUID ();
1855
1852
auto MaybeImportType = getImportType (ImportGUIDs, GUID);
1856
-
1857
- bool ImportDefinition =
1858
- (MaybeImportType &&
1859
- (*MaybeImportType == GlobalValueSummary::Definition));
1853
+ bool ImportDefinition = MaybeImportType == GlobalValueSummary::Definition;
1860
1854
1861
1855
LLVM_DEBUG (dbgs () << (MaybeImportType ? " Is" : " Not" )
1862
1856
<< " importing global"
@@ -1876,10 +1870,7 @@ Expected<bool> FunctionImporter::importFunctions(
1876
1870
continue ;
1877
1871
auto GUID = GA.getGUID ();
1878
1872
auto MaybeImportType = getImportType (ImportGUIDs, GUID);
1879
-
1880
- bool ImportDefinition =
1881
- (MaybeImportType &&
1882
- (*MaybeImportType == GlobalValueSummary::Definition));
1873
+ bool ImportDefinition = MaybeImportType == GlobalValueSummary::Definition;
1883
1874
1884
1875
LLVM_DEBUG (dbgs () << (MaybeImportType ? " Is" : " Not" )
1885
1876
<< " importing alias"
You can’t perform that action at this time.
0 commit comments