Fix compilation in gold-plugin triggered by D125847
authorMatthias Braun <matze@braunis.de>
Thu, 2 Jun 2022 01:51:35 +0000 (18:51 -0700)
committerMatthias Braun <matze@braunis.de>
Thu, 2 Jun 2022 01:51:35 +0000 (18:51 -0700)
llvm/tools/gold/gold-plugin.cpp

index a9814c6..9a0264d 100644 (file)
@@ -963,7 +963,7 @@ static std::unique_ptr<LTO> createLTO(IndexWriteCallback OnIndexWrite,
 
   Conf.HasWholeProgramVisibility = options::whole_program_visibility;
 
-  Conf.OpaquePointers = options.opaque_pointers;
+  Conf.OpaquePointers = options::opaque_pointers;
 
   Conf.StatsFile = options::stats_file;
   return std::make_unique<LTO>(std::move(Conf), Backend,