[coco] Generalize isa<T> and safe_cast<T> (#2490)
author박종현/동작제어Lab(SR)/Staff Engineer/삼성전자 <jh1302.park@samsung.com>
Tue, 4 Dec 2018 08:58:46 +0000 (17:58 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Tue, 4 Dec 2018 08:58:46 +0000 (17:58 +0900)
commit9b27274da05fcc1360e06b39d36a7cd07c3b1f66
treed34af9b5ed1581bef37fd2886a6f7f0c8cdd9530
parentb3243a33f6367e37fb4620f6e186fe36bef83829
[coco] Generalize isa<T> and safe_cast<T> (#2490)

With this commit, isa<T> and safe_cast<T> correctly works even in the
presence of "unknown" derived classes.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
contrib/coco/core/include/coco/IR/Instr.h
contrib/coco/core/src/IR/Instr.cpp