[compiler-rt] 1f58aa3 - [NFC] [scudo] fix mistake in DCHECK

Florian Mayer via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 13 10:20:52 PST 2023


Author: Florian Mayer
Date: 2023-01-13T10:20:42-08:00
New Revision: 1f58aa3797d6683f8539341f8e7b4ac76666867f

URL: https://github.com/llvm/llvm-project/commit/1f58aa3797d6683f8539341f8e7b4ac76666867f
DIFF: https://github.com/llvm/llvm-project/commit/1f58aa3797d6683f8539341f8e7b4ac76666867f.diff

LOG: [NFC] [scudo] fix mistake in DCHECK

sorry, my test build (and all the pre-merge bots) did not exercise this.

Added: 
    

Modified: 
    compiler-rt/lib/scudo/standalone/combined.h

Removed: 
    


################################################################################
diff  --git a/compiler-rt/lib/scudo/standalone/combined.h b/compiler-rt/lib/scudo/standalone/combined.h
index da8104cca7e5..8ede5d3d5a53 100644
--- a/compiler-rt/lib/scudo/standalone/combined.h
+++ b/compiler-rt/lib/scudo/standalone/combined.h
@@ -902,7 +902,7 @@ class Allocator {
   void setTrackAllocationStacks(bool Track) {
     initThreadMaybe();
     if (getFlags()->allocation_ring_buffer_size == 0) {
-      DCHECK(!Primary.Options.get(OptionsBit::TrackAllocationStacks));
+      DCHECK(!Primary.Options.get(OptionBit::TrackAllocationStacks));
       return;
     }
     if (Track)


        


More information about the llvm-commits mailing list