gentoo-overlay/dev-util/intel-graphics-compiler/files/intel-graphics-compiler-2.32.7-llvm22.patch

19 lines
752 B
Diff

--- 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 <llvm/Config/llvm-config.h>
#include <llvm/IR/Constants.h>
+#include <llvm/IR/DebugProgramInstruction.h>
#include <llvm/IR/IntrinsicInst.h>
#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