================
@@ -1330,6 +1330,9 @@ void MCCFIInstruction::replaceRegister(unsigned FromReg, 
unsigned ToReg) {
         ReplaceReg(F.Register);
         ReplaceReg(F.SpillRegister);
         ReplaceReg(F.MaskRegister);
+      },
+      [](LLVMSetRAStateFields &) {
+        assert(false && ".cfi_llvm_set_ra_state does not have registers");
----------------
Stylie777 wrote:

If we are intending to always error when we reach here, llvm_unreachable would 
be better.

https://github.com/llvm/llvm-project/pull/205442
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to