[clang] eb737d6 - [clang][Interp][NFC] Make another Descriptor param const

Timm Bäder via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 26 04:17:34 PDT 2023


Author: Timm Bäder
Date: 2023-10-26T13:17:25+02:00
New Revision: eb737d6a7644d66ae57b0b4b8a30c6d2d2d961dc

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

LOG: [clang][Interp][NFC] Make another Descriptor param const

Added: 
    

Modified: 
    clang/lib/AST/Interp/InterpBlock.h

Removed: 
    


################################################################################
diff  --git a/clang/lib/AST/Interp/InterpBlock.h b/clang/lib/AST/Interp/InterpBlock.h
index 4ab67ebb9eaafcc..9d0c4859fd06c15 100644
--- a/clang/lib/AST/Interp/InterpBlock.h
+++ b/clang/lib/AST/Interp/InterpBlock.h
@@ -49,7 +49,7 @@ enum PrimType : unsigned;
 class Block final {
 public:
   /// Creates a new block.
-  Block(const std::optional<unsigned> &DeclID, Descriptor *Desc,
+  Block(const std::optional<unsigned> &DeclID, const Descriptor *Desc,
         bool IsStatic = false, bool IsExtern = false)
       : DeclID(DeclID), IsStatic(IsStatic), IsExtern(IsExtern), Desc(Desc) {}
 


        


More information about the cfe-commits mailing list