Update SPIRV-Headers (#4628)
* Fix compile
* Fix test
diff --git a/DEPS b/DEPS
index 677244e..2aaf11f 100644
--- a/DEPS
+++ b/DEPS
@@ -6,7 +6,7 @@
'effcee_revision': 'ddf5e2bb92957dc8a12c5392f8495333d6844133',
'googletest_revision': 'bf0701daa9f5b30e5882e2f8f9a5280bcba87e77',
're2_revision': '4244cd1cb492fa1d10986ec67f862964c073f844',
- 'spirv_headers_revision': '29817199b7069bac971e5365d180295d4b077ebe',
+ 'spirv_headers_revision': '814e728b30ddd0f4509233099a3ad96fd4318c07',
}
deps = {
diff --git a/source/opt/reflect.h b/source/opt/reflect.h
index ffd2805..c2ffb0b 100644
--- a/source/opt/reflect.h
+++ b/source/opt/reflect.h
@@ -52,7 +52,7 @@
}
inline bool IsConstantInst(SpvOp opcode) {
return (opcode >= SpvOpConstantTrue && opcode <= SpvOpSpecConstantOp) ||
- opcode == SpvOpConstFunctionPointerINTEL;
+ opcode == SpvOpConstantFunctionPointerINTEL;
}
inline bool IsCompileTimeConstantInst(SpvOp opcode) {
return opcode >= SpvOpConstantTrue && opcode <= SpvOpConstantNull;
diff --git a/test/opt/ir_loader_test.cpp b/test/opt/ir_loader_test.cpp
index 6eafcd9..ccdd032 100644
--- a/test/opt/ir_loader_test.cpp
+++ b/test/opt/ir_loader_test.cpp
@@ -115,7 +115,7 @@
"%float = OpTypeFloat 32\n"
"%4 = OpTypeFunction %float %float\n"
"%_ptr_Function_4 = OpTypePointer Function %4\n"
- "%ptr_to_function = OpConstFunctionPointerINTEL %_ptr_Function_4 "
+ "%ptr_to_function = OpConstantFunctionPointerINTEL %_ptr_Function_4 "
"%some_function\n"
"%some_function = OpFunction %float Const %4\n"
"%6 = OpFunctionParameter %float\n"