[clang] 67c9fd7 - [clang][Interp][NFC] Make Pointer::block() const
Timm Bäder via cfe-commits
cfe-commits at lists.llvm.org
Thu May 4 00:49:55 PDT 2023
Author: Timm Bäder
Date: 2023-05-04T09:36:40+02:00
New Revision: 67c9fd7a184a138a690cae1bef4073fddba07151
URL: https://github.com/llvm/llvm-project/commit/67c9fd7a184a138a690cae1bef4073fddba07151
DIFF: https://github.com/llvm/llvm-project/commit/67c9fd7a184a138a690cae1bef4073fddba07151.diff
LOG: [clang][Interp][NFC] Make Pointer::block() const
Added:
Modified:
clang/lib/AST/Interp/Pointer.h
Removed:
################################################################################
diff --git a/clang/lib/AST/Interp/Pointer.h b/clang/lib/AST/Interp/Pointer.h
index 5895c61295e0..10d21a27167f 100644
--- a/clang/lib/AST/Interp/Pointer.h
+++ b/clang/lib/AST/Interp/Pointer.h
@@ -290,7 +290,7 @@ class Pointer {
/// Returns the number of elements.
unsigned getNumElems() const { return getSize() / elemSize(); }
- Block *block() const { return Pointee; }
+ const Block *block() const { return Pointee; }
/// Returns the index into an array.
int64_t getIndex() const {
More information about the cfe-commits
mailing list