Skip to content

Commit 2c80855

Browse files
committed
review comments
1 parent 009d3ba commit 2c80855

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/tools/llvm-exegesis/lib/AArch64/Target.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,15 +213,15 @@ class ExegesisAArch64Target : public ExegesisTarget {
213213
// For systems without PAC, this is a No-op but with PAC, it is
214214
// safer to check the existing key state and then disable/enable them.
215215
// Hence the guard placed for switching.
216-
unsigned long pac_keys = 0;
216+
unsigned long PacKeys = 0;
217217
if (prctl(PR_PAC_GET_ENABLED_KEYS, &pac_keys, 0, 0, 0) < 0) {
218218
return "Failed to get PAC key status";
219219
}
220220

221221
// Disable all PAC keys. Note that while we expect the measurements to
222222
// be the same with PAC keys disabled, they could potentially be lower
223223
// since authentication checks are bypassed.
224-
if (pac_keys != 0) {
224+
if (PacKeys != 0) {
225225
if (prctl(PR_PAC_SET_ENABLED_KEYS,
226226
PR_PAC_APIAKEY | PR_PAC_APIBKEY | PR_PAC_APDAKEY |
227227
PR_PAC_APDBKEY, // all keys

0 commit comments

Comments
 (0)