From 24a5b945b723200ad0ed9659017d67724c393d4f Mon Sep 17 00:00:00 2001 From: Anatoly Parshintsev Date: Wed, 29 Sep 2021 23:08:36 +0000 Subject: [PATCH] template function for static checks should have "inline" attribute --- lib/Headers/cm/include/cm/cm_has_instr.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/Headers/cm/include/cm/cm_has_instr.h b/lib/Headers/cm/include/cm/cm_has_instr.h index 4501401c70be..64f742ea2c00 100644 --- a/lib/Headers/cm/include/cm/cm_has_instr.h +++ b/lib/Headers/cm/include/cm/cm_has_instr.h @@ -6,6 +6,8 @@ SPDX-License-Identifier: MIT ============================= end_copyright_notice ===========================*/ +#include "cm_common.h" + // This file provide CM_HAS_ flag // It's used for checking platform to support // @@ -31,7 +33,7 @@ namespace CheckVersion { }; template - void Check() { + CM_INLINE CM_NODEBUG void Check() { CM_STATIC_ERROR(T::check, "Not supported feature for this platform"); } }