You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: compiler/rustc_codegen_llvm/src/context.rs
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,5 @@
1
1
usecrate::attributes;
2
+
usecrate::back::write::to_llvm_code_model;
2
3
usecrate::callee::get_fn;
3
4
usecrate::coverageinfo;
4
5
usecrate::debuginfo;
@@ -181,6 +182,13 @@ pub unsafe fn create_module(
181
182
}
182
183
}
183
184
185
+
// Linking object files with different code models is undefined behavior
186
+
// because the compiler would have to generate additional code (to span
187
+
// longer jumps) if a larger code model is used with a smaller one.
188
+
//
189
+
// See https://reviews.llvm.org/D52322 and https://reviews.llvm.org/D52323.
0 commit comments