[PATCH] D22526: AMDGPU: Fix bug causing crash due to invalid opencl version metadata.

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 19 14:06:00 PDT 2016


arsenm added inline comments.

================
Comment at: lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp:791
@@ +790,3 @@
+                              RuntimeMD::OpenCL_C, 1);
+        unsigned short Major = mdconst::extract<ConstantInt>(Node->getOperand(0))
+                               ->getZExtValue();
----------------
Should use unsigned or uint16_t


https://reviews.llvm.org/D22526





More information about the llvm-commits mailing list