| 1899 | } |
| 1900 | |
| 1901 | bool TypeDecl::canWrite() const { |
| 1902 | bool cw = baseType==Type::tPointer || baseType==Type::anyArgument || isRef(); |
| 1903 | if ( baseType!=Type::tPointer ) { |
| 1904 | cw &= !constant; |
| 1905 | } else if ( firstType ) { |
| 1906 | cw &= !firstType->constant; |
| 1907 | } |
| 1908 | return cw; |
| 1909 | } |
| 1910 | |
| 1911 | // validate swizzle mask and build mask type |
| 1912 |