mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
IRGen: don't enable opaque pointers by default
This commit is contained in:
@@ -96,8 +96,11 @@ static clang::CodeGenerator *createClangCodeGenerator(ASTContext &Context,
|
||||
auto &ClangContext = Importer->getClangASTContext();
|
||||
|
||||
auto &CGO = Importer->getClangCodeGenOpts();
|
||||
if (CGO.OpaquePointers)
|
||||
if (CGO.OpaquePointers) {
|
||||
LLVMContext.setOpaquePointers(true);
|
||||
} else {
|
||||
LLVMContext.setOpaquePointers(false);
|
||||
}
|
||||
|
||||
CGO.OptimizationLevel = Opts.shouldOptimize() ? 3 : 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user