about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
diff options
context:
space:
mode:
authorLiu Dingming <liudingming@bytedance.com>2023-09-07 17:36:21 +0800
committerLiu Dingming <liudingming@bytedance.com>2023-09-07 17:37:12 +0800
commit487766cef0faa12c3e744b8c754ea7c58427ec2f (patch)
treefd38b0e7fc1cc5babc1884d46307a6344e703c0f /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
parentbb6dcf5f740f6147eaf8774509ca27adc47c009b (diff)
downloadrust-487766cef0faa12c3e744b8c754ea7c58427ec2f.tar.gz
rust-487766cef0faa12c3e744b8c754ea7c58427ec2f.zip
Using parsed codegen flags
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp')
-rw-r--r--compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp b/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
index 4b30a4fefd9..194ebe6d968 100644
--- a/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
+++ b/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
@@ -424,7 +424,7 @@ extern "C" LLVMTargetMachineRef LLVMRustCreateTargetMachine(
     return nullptr;
   }
 
-  TargetOptions Options;
+  TargetOptions Options = codegen::InitTargetOptionsFromCodeGenFlags(Trip);
 
   Options.FloatABIType = FloatABI::Default;
   if (UseSoftFloat) {