Cannot specify atomic counter with location.

Signed-off-by: ZhiqianXia <xzq0528@outlook.com>
This commit is contained in:
ZhiqianXia
2021-02-09 09:42:48 +08:00
parent 29b2a08133
commit 5100efdfa9

View File

@@ -5768,7 +5768,7 @@ void TParseContext::layoutObjectCheck(const TSourceLoc& loc, const TSymbol& symb
if (qualifier.isShaderRecord())
error(loc, "can only specify on a buffer block", "shaderRecordNV", "");
if (qualifier.hasLocation() && type.isAtomic())
error(loc, "cannot specify on atomic counter", "atomic_uint", "");
error(loc, "cannot specify on atomic counter", "location", "");
}
break;
default: