File tree Expand file tree Collapse file tree 1 file changed +3
-18
lines changed Expand file tree Collapse file tree 1 file changed +3
-18
lines changed Original file line number Diff line number Diff line change @@ -284,23 +284,6 @@ class AArch64MCPlusBuilder : public MCPlusBuilder {
284
284
IsAuthenticatedInternally = false ;
285
285
286
286
switch (Inst.getOpcode ()) {
287
- case AArch64::B:
288
- case AArch64::BL:
289
- assert (Inst.getOperand (0 ).isExpr ());
290
- return getNoRegister ();
291
- case AArch64::Bcc:
292
- case AArch64::CBNZW:
293
- case AArch64::CBNZX:
294
- case AArch64::CBZW:
295
- case AArch64::CBZX:
296
- assert (Inst.getOperand (1 ).isExpr ());
297
- return getNoRegister ();
298
- case AArch64::TBNZW:
299
- case AArch64::TBNZX:
300
- case AArch64::TBZW:
301
- case AArch64::TBZX:
302
- assert (Inst.getOperand (2 ).isExpr ());
303
- return getNoRegister ();
304
287
case AArch64::BR:
305
288
case AArch64::BLR:
306
289
return Inst.getOperand (0 ).getReg ();
@@ -315,7 +298,9 @@ class AArch64MCPlusBuilder : public MCPlusBuilder {
315
298
IsAuthenticatedInternally = true ;
316
299
return Inst.getOperand (0 ).getReg ();
317
300
default :
318
- llvm_unreachable (" Unhandled call instruction" );
301
+ if (isIndirectCall (Inst) || isIndirectBranch (Inst))
302
+ llvm_unreachable (" Unhandled indirect branch" );
303
+ return getNoRegister ();
319
304
}
320
305
}
321
306
You can’t perform that action at this time.
0 commit comments