[nnc] fix static analysis warning and add missed break (#2287)
authorПавел Фаттахов/AI Tools Lab /SRR/Assistant Engineer/삼성전자 <p.fattakhov@partner.samsung.com>
Tue, 20 Nov 2018 18:10:31 +0000 (21:10 +0300)
committerEfimov Alexander/AI Tools Lab/./Samsung Electronics <a.efimov@samsung.com>
Tue, 20 Nov 2018 18:10:31 +0000 (21:10 +0300)
commitec37f1e1e18ee9667788934e6bdbd8aff3140f2f
tree6f8f3bdff8be5b43c13cd48c579db65e7f4b7d90
parent4af8d3ac3a8213c1d5e14adaeade957e557f2172
[nnc] fix static analysis warning and add missed break (#2287)

- Add assert, which protects us from passing a null pointer to a function.
- Add break statement into switch in tflite_importer.

Signed-off-by: Pavel <p.fattakhov@partner.samsung.com>
contrib/nnc/passes/tflite_frontend/tflite_importer.cpp