[llvm] [SandboxIR] Add setOperand() and RAUW,RUWIf,RUOW (PR #98410)

Arthur Eubanks via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 11 11:13:49 PDT 2024


================
@@ -180,6 +206,19 @@ bool User::classof(const Value *From) {
   }
 }
 
+void User::setOperand(unsigned OperandIdx, Value *Operand) {
+  if (!isa<llvm::User>(Val))
----------------
aeubanks wrote:

and that's sorta already covered by the `cast<llvm::User>` below, but I guess a nicer error message is good

https://github.com/llvm/llvm-project/pull/98410


More information about the llvm-commits mailing list