--- a/IGC/WrapperLLVM/include/llvmWrapper/IR/IntrinsicInst.h +++ b/IGC/WrapperLLVM/include/llvmWrapper/IR/IntrinsicInst.h @@ -12,6 +12,7 @@ #include "IGC/common/LLVMWarningsPush.hpp" #include #include +#include #include #include "llvm/IR/DebugInfoMetadata.h" #include "llvm/Support/Casting.h" @@ -50,4 +51,8 @@ inline void setExpression(llvm::DbgVariableIntrinsic *DbgInst, llvm::DIExpressio IGC_ASSERT(DbgInst); DbgInst->setExpression(NewExpr); } +inline void setExpression(llvm::DbgVariableRecord *DbgInst, llvm::DIExpression *NewExpr) { + IGC_ASSERT(DbgInst); + DbgInst->setExpression(NewExpr); +} } // namespace IGCLLVM