1
Fork 0

Use debug_assert instead of expanded equivalent

This commit is contained in:
Wesley Wiser 2024-01-22 10:10:00 -06:00 committed by GitHub
parent b152de29c5
commit 21e5beae3c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -366,10 +366,8 @@ fn check_code_region(code_region: CodeRegion) -> Option<CodeRegion> {
?is_ordered, ?is_ordered,
"Skipping code region that would be misinterpreted or rejected by LLVM" "Skipping code region that would be misinterpreted or rejected by LLVM"
); );
if cfg!(debug_assertions) { // If this happens in a debug build, ICE to make it easier to notice.
// If this happens in a debug build, ICE to make it easier to notice. debug_assert!(false, "Improper code region: {code_region:?}");
bug!("Improper code region: {code_region:?}");
}
None None
} }
} }