diff options
Diffstat (limited to 'source/slang/slang-lower-to-ir.cpp')
| -rw-r--r-- | source/slang/slang-lower-to-ir.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/slang/slang-lower-to-ir.cpp b/source/slang/slang-lower-to-ir.cpp index 17ce04fec..89fc00087 100644 --- a/source/slang/slang-lower-to-ir.cpp +++ b/source/slang/slang-lower-to-ir.cpp @@ -8878,9 +8878,9 @@ struct DeclLoweringVisitor : DeclVisitor<DeclLoweringVisitor, LoweredValInfo> void addBitFieldAccessorDecorations(IRInst* irFunc, Decl* decl) { - // If this is an accessor under a property we can move the bitfield - // modifiers on the property to the accessor function. - if(as<AccessorDecl>(decl) && as<PropertyDecl>(decl->parentDecl)) + // If this is an accessor and the parent is describing some bitfield, + // we can move the bitfield modifiers to the accessor function. + if(as<AccessorDecl>(decl)) { if(const auto bfm = decl->parentDecl->findModifier<BitFieldModifier>()) { |
