[llvm] 855beb1 - [LTO] Always use opaque pointers mode from config
    Nikita Popov via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Wed Jan 18 02:02:17 PST 2023
    
    
  
Author: Nikita Popov
Date: 2023-01-18T11:02:09+01:00
New Revision: 855beb1401cc823ab2f7f5c8c369dcc3da22634a
URL: https://github.com/llvm/llvm-project/commit/855beb1401cc823ab2f7f5c8c369dcc3da22634a
DIFF: https://github.com/llvm/llvm-project/commit/855beb1401cc823ab2f7f5c8c369dcc3da22634a.diff
LOG: [LTO] Always use opaque pointers mode from config
Always use the configured opaque pointers mode, don't check whether
it has already been set through a different means.
Removes the last user of the hasSetOpaquePointersValue() API.
Added: 
    
Modified: 
    llvm/include/llvm/LTO/Config.h
Removed: 
    
################################################################################
diff  --git a/llvm/include/llvm/LTO/Config.h b/llvm/include/llvm/LTO/Config.h
index 4c793697da022..7a746592c9fcd 100644
--- a/llvm/include/llvm/LTO/Config.h
+++ b/llvm/include/llvm/LTO/Config.h
@@ -298,8 +298,7 @@ struct LTOLLVMContext : LLVMContext {
     enableDebugTypeODRUniquing();
     setDiagnosticHandler(
         std::make_unique<LTOLLVMDiagnosticHandler>(&DiagHandler), true);
-    if (!hasSetOpaquePointersValue())
-      setOpaquePointers(C.OpaquePointers);
+    setOpaquePointers(C.OpaquePointers);
   }
   DiagnosticHandlerFunction DiagHandler;
 };
        
    
    
More information about the llvm-commits
mailing list