Skip to content

Commit db9acf1

Browse files
back out the bug check
1 parent 5c48fd1 commit db9acf1

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

compiler/rustc_codegen_llvm/src/context.rs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -220,15 +220,7 @@ pub(crate) unsafe fn create_module<'ll>(
220220
.expect("got a non-UTF8 data-layout from LLVM");
221221

222222
if tcx.sess.target.os == "aix" {
223-
// We committed a travesty to fix a bug in LLVM and/or clang, depending on POV:
224-
// clang overrides the data layout for AIX targets, instead of reusing LLVM's layout,
225-
// which causes problems in flang, rustc, and other LLVM-based compilers which,
226-
// instead of having individual impls of layout logic, parse LLVM datalayout strings.
227-
// As a hotfix, we override the AIX datalayout and thus now check for NON-conformance!
228-
// See https://github.com/llvm/llvm-project/issues/133599 for more.
229-
if target_data_layout == llvm_data_layout {
230-
bug!("LLVM got fixed, please remove this exception in cg_llvm!");
231-
}
223+
// FIXME(workingjubilee): Currently skipping this logic for testing purposes
232224
} else if target_data_layout != llvm_data_layout {
233225
tcx.dcx().emit_err(crate::errors::MismatchedDataLayout {
234226
rustc_target: sess.opts.target_triple.to_string().as_str(),

0 commit comments

Comments
 (0)