We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4e4bed8 commit 8814679Copy full SHA for 8814679
compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
@@ -152,11 +152,11 @@ extern "C" LLVMContextRef LLVMRustContextCreate(bool shouldDiscardNames) {
152
}
153
154
extern "C" void LLVMRustSetNormalizedTarget(LLVMModuleRef M,
155
- const char *Triple) {
+ const char *Target) {
156
#if LLVM_VERSION_GE(21, 0)
157
- unwrap(M)->setTargetTriple(llvm::Triple(Triple::normalize(Triple)));
+ unwrap(M)->setTargetTriple(Triple(Triple::normalize(Target)));
158
#else
159
- unwrap(M)->setTargetTriple(Triple::normalize(Triple));
+ unwrap(M)->setTargetTriple(Triple::normalize(Target));
160
#endif
161
162
0 commit comments