[compiler-rt] 7ac7bd0 - [NFC][ASAN] Add const to getter

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Mon May 8 00:53:34 PDT 2023


Author: Vitaly Buka
Date: 2023-05-08T00:53:18-07:00
New Revision: 7ac7bd03395d2c1487bb31f94b11b9bdc76d96f6

URL: https://github.com/llvm/llvm-project/commit/7ac7bd03395d2c1487bb31f94b11b9bdc76d96f6
DIFF: https://github.com/llvm/llvm-project/commit/7ac7bd03395d2c1487bb31f94b11b9bdc76d96f6.diff

LOG: [NFC][ASAN] Add const to getter

Added: 
    

Modified: 
    compiler-rt/lib/asan/asan_thread.h

Removed: 
    


################################################################################
diff  --git a/compiler-rt/lib/asan/asan_thread.h b/compiler-rt/lib/asan/asan_thread.h
index 801a3960ec6c..ec2a131f5dcf 100644
--- a/compiler-rt/lib/asan/asan_thread.h
+++ b/compiler-rt/lib/asan/asan_thread.h
@@ -129,7 +129,7 @@ class AsanThread {
 
   void *extra_spill_area() { return &extra_spill_area_; }
 
-  void *get_arg() { return arg_; }
+  void *get_arg() const { return arg_; }
 
  private:
   // NOTE: There is no AsanThread constructor. It is allocated


        


More information about the llvm-commits mailing list