Skip to content

Commit 4370e7e

Browse files
committed
Address feedback
1 parent 6b0d0f2 commit 4370e7e

File tree

1 file changed

+2
-1
lines changed
  • clang/lib/CodeGen/TargetBuiltins

1 file changed

+2
-1
lines changed

clang/lib/CodeGen/TargetBuiltins/ARM.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5479,7 +5479,8 @@ Value *CodeGenFunction::EmitAArch64BuiltinExpr(unsigned BuiltinID,
54795479
E->getArg(0)->EvaluateKnownConstInt(getContext()).getZExtValue();
54805480

54815481
std::string SysRegStr;
5482-
unsigned SysRegOp0 = (BuiltinID != clang::AArch64::BI__sys)
5482+
unsigned SysRegOp0 = (BuiltinID == clang::AArch64::BI_ReadStatusReg ||
5483+
BuiltinID == clang::AArch64::BI_WriteStatusReg)
54835484
? ((1 << 1) | ((SysReg >> 14) & 1))
54845485
: 1;
54855486
llvm::raw_string_ostream(SysRegStr)

0 commit comments

Comments
 (0)