Skip to content

Commit 26c9582

Browse files
committed
Trivial improvements
1 parent c4d109a commit 26c9582

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bolt/include/bolt/Core/MCPlusBuilder.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@ class MCPlusBuilder {
566566
/// or std::nullopt if not authenticating any register.
567567
///
568568
/// Sets IsChecked if the instruction always checks authenticated pointer,
569-
/// i.e. it either returns a successfully authenticated pointer or terminates
569+
/// i.e. it either writes a successfully authenticated pointer or terminates
570570
/// the program abnormally (such as "ldra x0, [x1]!" on AArch64, which crashes
571571
/// on authentication failure even if FEAT_FPAC is not implemented).
572572
virtual std::optional<MCPhysReg>
@@ -610,7 +610,7 @@ class MCPlusBuilder {
610610
getRegUsedAsIndirectBranchDest(const MCInst &Inst,
611611
bool &IsAuthenticatedInternally) const {
612612
llvm_unreachable("not implemented");
613-
return getNoRegister();
613+
return 0;
614614
}
615615

616616
/// Returns the register containing an address safely materialized by `Inst`

0 commit comments

Comments
 (0)