[llvm] [IR] PossiblyExactOperator -> PossiblyExactInst (NFC) (PR #72501)
Philip Reames via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 17 12:08:30 PST 2023
================
@@ -314,7 +314,9 @@ void Instruction::setHasNoSignedWrap(bool b) {
}
void Instruction::setIsExact(bool b) {
- cast<PossiblyExactOperator>(this)->setIsExact(b);
+ assert(isa<PossiblyExactInst>(this) && "Instruction must support exact flag");
----------------
preames wrote:
I'd mildly prefer the other form just for consistency, but this is very definitely non-blocking.
https://github.com/llvm/llvm-project/pull/72501
More information about the llvm-commits
mailing list