[llvm] [memprof] Use #ifdef EXPENSIVE_CHECKS (PR #86585)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 25 14:33:25 PDT 2024
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/86585
This patch replaces:
#if EXPENSIVE_CHECKS
with:
#ifdef EXPENSIVE_CHECKS
to follow the existing conventions.
>From 589ca57a7c5c8280e32229356960a4326ced77d4 Mon Sep 17 00:00:00 2001
From: Kazu Hirata <kazu at google.com>
Date: Mon, 25 Mar 2024 14:30:03 -0700
Subject: [PATCH] [memprof] Use #ifdef EXPENSIVE_CHECKS
This patch replaces:
#if EXPENSIVE_CHECKS
with:
#ifdef EXPENSIVE_CHECKS
to follow the existing conventions.
---
llvm/lib/ProfileData/InstrProfReader.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/llvm/lib/ProfileData/InstrProfReader.cpp b/llvm/lib/ProfileData/InstrProfReader.cpp
index efe135a0b40903..4f786a23f35453 100644
--- a/llvm/lib/ProfileData/InstrProfReader.cpp
+++ b/llvm/lib/ProfileData/InstrProfReader.cpp
@@ -1262,7 +1262,7 @@ Error IndexedInstrProfReader::readHeader() {
/*Payload=*/Start + FramePayloadOffset,
/*Base=*/Start, memprof::FrameLookupTrait()));
-#if EXPENSIVE_CHECKS
+#ifdef EXPENSIVE_CHECKS
// Go through all the records and verify that CSId has been correctly
// populated. Do this only under EXPENSIVE_CHECKS. Otherwise, we
// would defeat the purpose of OnDiskIterableChainedHashTable.
More information about the llvm-commits
mailing list