[clang] [clang][bytecode] Mark volatile composite locals as such (PR #174407)

Shafik Yaghmour via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 20 21:27:07 PST 2026


================
@@ -4673,7 +4673,8 @@ UnsignedOrNone Compiler<Emitter>::allocateLocal(DeclTy &&Src, QualType Ty,
 
   Descriptor *D = P.createDescriptor(
       Src, Ty.getTypePtr(), Descriptor::InlineDescMD, Ty.isConstQualified(),
-      IsTemporary, /*IsMutable=*/false, /*IsVolatile=*/false, Init);
+      IsTemporary, /*IsMutable=*/false, /*IsVolatile=*/Ty.isVolatileQualified(),
----------------
shafik wrote:

nit but we don't need the `/*IsVolatile=*/` anymore.

https://github.com/llvm/llvm-project/pull/174407


More information about the cfe-commits mailing list