Allow non-branch in cc_return_address_to_entry_address.
authorTaylor R Campbell <campbell@mumble.net>
Sat, 19 Jan 2019 23:57:34 +0000 (23:57 +0000)
committerTaylor R Campbell <campbell@mumble.net>
Wed, 21 Aug 2019 21:34:04 +0000 (21:34 +0000)
This happens for trampolines.  Maybe this should be a special case.

src/microcode/cmpintmd/aarch64.c

index db565c8124d5be8c7eca1a8fa0609b97a4f0428c..61f267263da3001bd90b84dcf087e3f2028d53f7 100644 (file)
@@ -93,7 +93,7 @@ cc_return_address_to_entry_address (insn_t * pc)
     return (pc + (insn & 0x03ffffff));
   else
     /* XXX What if it got branch-tensioned?  */
-    error_external_return ();
+    return (pc);
 }
 \f
 /* Compiled closures */