GBE: Fix a constant bug which over-write memory.
authorRuiling Song <ruiling.song@intel.com>
Tue, 24 Sep 2013 07:39:36 +0000 (15:39 +0800)
committerZhigang Gong <zhigang.gong@linux.intel.com>
Wed, 25 Sep 2013 11:08:10 +0000 (19:08 +0800)
commitd42fdd0b273b2c849ed12bb49536d29a18601626
tree9e6552a7eb463c312841dec5c0b0caa81d3b33a7
parent1951311d955aab3ae40e1753c98926911b73f2d4
GBE: Fix a constant bug which over-write memory.

Previously it will always write 8 byte no matter what size of integer.
Fix it by only copying necessary data.

Reported by Homer Hsing.

Signed-off-by: Ruiling Song <ruiling.song@intel.com>
Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
backend/src/llvm/llvm_gen_backend.cpp