diff --git a/src/compiler/nir/nir_algebraic.py b/src/compiler/nir/nir_algebraic.py index 9c6baae35c9..fb6513aa76a 100644 --- a/src/compiler/nir/nir_algebraic.py +++ b/src/compiler/nir/nir_algebraic.py @@ -114,6 +114,9 @@ class SearchExpression(object): self.sources = expr[1:] self.ignore_exact = False + assert '{' not in self.opcode, \ + 'Malformed opcode name \"{}\".'.format(self.opcode) + @staticmethod def create(val): if isinstance(val, tuple):