diff --git a/clang/lib/AST/Interp/ByteCodeEmitter.cpp b/clang/lib/AST/Interp/ByteCodeEmitter.cpp index 359e774d12716..3248877b5f470 100644 --- a/clang/lib/AST/Interp/ByteCodeEmitter.cpp +++ b/clang/lib/AST/Interp/ByteCodeEmitter.cpp @@ -167,7 +167,7 @@ bool ByteCodeEmitter::bail(const SourceLocation &Loc) { /// Helper to write bytecode and bail out if 32-bit offsets become invalid. /// Pointers will be automatically marshalled as 32-bit IDs. template -static void emit(Program &P, std::vector &Code, const T &Val, +static void emit(Program &P, std::vector &Code, const T &Val, bool &Success) { size_t Size; diff --git a/clang/lib/AST/Interp/ByteCodeEmitter.h b/clang/lib/AST/Interp/ByteCodeEmitter.h index a184ee071e9df..795534696d92f 100644 --- a/clang/lib/AST/Interp/ByteCodeEmitter.h +++ b/clang/lib/AST/Interp/ByteCodeEmitter.h @@ -93,7 +93,7 @@ class ByteCodeEmitter { /// Location of label relocations. llvm::DenseMap> LabelRelocs; /// Program code. - std::vector Code; + std::vector Code; /// Opcode to expression mapping. SourceMap SrcMap; diff --git a/clang/lib/AST/Interp/Function.h b/clang/lib/AST/Interp/Function.h index 6fde5a616dec0..207fb294d6e04 100644 --- a/clang/lib/AST/Interp/Function.h +++ b/clang/lib/AST/Interp/Function.h @@ -164,7 +164,7 @@ class Function final { bool HasThisPointer, bool HasRVO); /// Sets the code of a function. - void setCode(unsigned NewFrameSize, std::vector &&NewCode, + void setCode(unsigned NewFrameSize, std::vector &&NewCode, SourceMap &&NewSrcMap, llvm::SmallVector &&NewScopes, bool NewHasBody) { FrameSize = NewFrameSize; @@ -192,7 +192,7 @@ class Function final { /// Size of the argument stack. unsigned ArgSize; /// Program code. - std::vector Code; + std::vector Code; /// Opcode-to-expression mapping. SourceMap SrcMap; /// List of block descriptors. diff --git a/clang/lib/AST/Interp/Source.h b/clang/lib/AST/Interp/Source.h index 3ca6dfd06402a..f448081362b58 100644 --- a/clang/lib/AST/Interp/Source.h +++ b/clang/lib/AST/Interp/Source.h @@ -64,9 +64,9 @@ class CodePtr final { private: friend class Function; /// Constructor used by Function to generate pointers. - CodePtr(const char *Ptr) : Ptr(Ptr) {} + CodePtr(const std::byte *Ptr) : Ptr(Ptr) {} /// Pointer into the code owned by a function. - const char *Ptr; + const std::byte *Ptr; }; /// Describes the statement/declaration an opcode was generated from.