diff --git a/clang/lib/AST/Interp/ByteCodeEmitter.cpp b/clang/lib/AST/Interp/ByteCodeEmitter.cpp index a634ee288f57c..4989b4ba797f2 100644 --- a/clang/lib/AST/Interp/ByteCodeEmitter.cpp +++ b/clang/lib/AST/Interp/ByteCodeEmitter.cpp @@ -149,7 +149,7 @@ void ByteCodeEmitter::emitLabel(LabelTy Label) { void *Location = Code.data() + Reloc - align(sizeof(int32_t)); assert(aligned(Location)); const int32_t Offset = Target - static_cast(Reloc); - endian::write(Location, Offset); + endian::write(Location, Offset); } LabelRelocs.erase(It); } diff --git a/clang/lib/AST/Interp/Source.h b/clang/lib/AST/Interp/Source.h index fec950dd544f8..70a6b87d031bb 100644 --- a/clang/lib/AST/Interp/Source.h +++ b/clang/lib/AST/Interp/Source.h @@ -55,7 +55,7 @@ class CodePtr final { template std::enable_if_t::value, T> read() { assert(aligned(Ptr)); using namespace llvm::support; - T Value = endian::read(Ptr); + T Value = endian::read(Ptr); Ptr += align(sizeof(T)); return Value; }