Skip to content
  • Richard Henderson's avatar
    f2604471
    decodetree: Diagnose empty pattern group · f2604471
    Richard Henderson authored
    
    
    Test err_pattern_group_empty.decode failed with exception:
    
    Traceback (most recent call last):
      File "./scripts/decodetree.py", line 1424, in <module> main()
      File "./scripts/decodetree.py", line 1342, in main toppat.build_tree()
      File "./scripts/decodetree.py", line 627, in build_tree
        self.tree = self.__build_tree(self.pats, self.fixedbits,
      File "./scripts/decodetree.py", line 607, in __build_tree
        fb = i.fixedbits & innermask
    TypeError: unsupported operand type(s) for &: 'NoneType' and 'int'
    
    Signed-off-by: default avatarRichard Henderson <richard.henderson@linaro.org>
    f2604471
    decodetree: Diagnose empty pattern group
    Richard Henderson authored
    
    
    Test err_pattern_group_empty.decode failed with exception:
    
    Traceback (most recent call last):
      File "./scripts/decodetree.py", line 1424, in <module> main()
      File "./scripts/decodetree.py", line 1342, in main toppat.build_tree()
      File "./scripts/decodetree.py", line 627, in build_tree
        self.tree = self.__build_tree(self.pats, self.fixedbits,
      File "./scripts/decodetree.py", line 607, in __build_tree
        fb = i.fixedbits & innermask
    TypeError: unsupported operand type(s) for &: 'NoneType' and 'int'
    
    Signed-off-by: default avatarRichard Henderson <richard.henderson@linaro.org>
Loading