1
Fork 0

cleanup: handle -Zmutable-noalias like -Zbox-noalias

This commit is contained in:
Erik Desjardins 2023-01-04 19:24:42 -05:00
parent c7572670a1
commit d165a6d708
4 changed files with 31 additions and 28 deletions

View file

@ -71,12 +71,7 @@ mod attr_impl {
const NonNull = 1 << 3;
const ReadOnly = 1 << 4;
const InReg = 1 << 5;
// Due to past miscompiles in LLVM, we use a separate attribute for
// &mut arguments, so that the codegen backend can decide whether
// or not to actually emit the attribute. It can also be controlled
// with the `-Zmutable-noalias` debugging option.
const NoAliasMutRef = 1 << 6;
const NoUndef = 1 << 7;
const NoUndef = 1 << 6;
}
}
}