This is passed on to Program::createDescriptor, where it is used as a
value for IsConst.
// For everyhing else, use local variables.
if (SubExprT) {
if (std::optional<unsigned> LocalIndex = allocateLocalPrimitive(
- SubExpr, *SubExprT, /*IsMutable=*/true, /*IsExtended=*/true)) {
+ SubExpr, *SubExprT, /*IsConst=*/true, /*IsExtended=*/true)) {
if (!this->visitInitializer(SubExpr))
return false;
this->emitSetLocal(*SubExprT, *LocalIndex, E);
llvm::function_ref<bool(const Expr *)> V);
/// Creates a local primitive value.
- unsigned allocateLocalPrimitive(DeclTy &&Decl, PrimType Ty, bool IsMutable,
+ unsigned allocateLocalPrimitive(DeclTy &&Decl, PrimType Ty, bool IsConst,
bool IsExtended = false);
/// Allocates a space storing a local given its type.