Signed-off-by: Ruiling Song <[email protected]>
---
 backend/src/ir/unit.hpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/backend/src/ir/unit.hpp b/backend/src/ir/unit.hpp
index b8df145..ce603a0 100644
--- a/backend/src/ir/unit.hpp
+++ b/backend/src/ir/unit.hpp
@@ -58,7 +58,7 @@ namespace ir {
                                             entries(other.entries) {}
       uint32_t getCount() { return entries.size(); }
       void getData(char *p) {
-        if (entries.size() > 1 && p)
+        if (entries.size() > 0 && p)
           memcpy(p, entries.data(), entries.size()*sizeof(RelocEntry));
       }
     static const uint32_t magic_begin = TO_MAGIC('R', 'E', 'L', 'C');
-- 
2.4.1

_______________________________________________
Beignet mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/beignet

Reply via email to