Commit 82e9ab1e authored by JuanRod2's avatar JuanRod2 Committed by gbsbuild

Fix for KW issues reported in master build

Change-Id: I90fb01b2a72237a77d516096039dacc1c16034b8
parent 742d6d78
......@@ -35,6 +35,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include "common/LLVMWarningsPop.hpp"
#include "common/debug/Dump.hpp"
#include "common/secure_mem.h"
#include "Compiler/GenUpdateCB.h"
#include "Compiler/CISACodeGen/helper.h"
#include "GenISAIntrinsics/GenIntrinsics.h"
......@@ -646,7 +647,7 @@ namespace IGC
struct ResInfoResult {
unsigned info[4];
ResInfoResult() { info[0] = info[1] = info[2] = info[3] = 0; }
ResInfoResult(unsigned res[4]) { memcpy(info, res, sizeof(info)); }
ResInfoResult(unsigned res[4]) { memcpy_s(info, sizeof(info), res, sizeof(info)); }
};
DenseMap<Value*, uint> CalculatedValue;
DenseMap<Value*, ResInfoResult> resInfo;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment