diff options
Diffstat (limited to 'llvm/runtime/libprofile/CommonProfiling.c')
| -rw-r--r-- | llvm/runtime/libprofile/CommonProfiling.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/runtime/libprofile/CommonProfiling.c b/llvm/runtime/libprofile/CommonProfiling.c index ea795b6989e..e5cfbe3b788 100644 --- a/llvm/runtime/libprofile/CommonProfiling.c +++ b/llvm/runtime/libprofile/CommonProfiling.c @@ -78,5 +78,6 @@ void write_profiling_data(enum ProfilingType PT, unsigned *Start, /* Write out this record! */ PTy = PT; write(OutFile, &PTy, sizeof(int)); + write(OutFile, &NumElements, sizeof(unsigned)); write(OutFile, Start, NumElements*sizeof(unsigned)); } |

