[llvm] 9855134 - [memprof] Use #ifdef EXPENSIVE_CHECKS (#86585)

via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 25 14:36:06 PDT 2024


Author: Kazu Hirata
Date: 2024-03-25T14:36:03-07:00
New Revision: 9855134d079a193e5c17259f024082d6bb5396bf

URL: https://github.com/llvm/llvm-project/commit/9855134d079a193e5c17259f024082d6bb5396bf
DIFF: https://github.com/llvm/llvm-project/commit/9855134d079a193e5c17259f024082d6bb5396bf.diff

LOG: [memprof] Use #ifdef EXPENSIVE_CHECKS (#86585)

This patch replaces:

  #if EXPENSIVE_CHECKS

with:

  #ifdef EXPENSIVE_CHECKS

to follow the existing conventions.

Added: 
    

Modified: 
    llvm/lib/ProfileData/InstrProfReader.cpp

Removed: 
    


################################################################################
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