[compiler-rt] r269533 - minor cleanup -- reset buffer pointer
Xinliang David Li via llvm-commits
llvm-commits at lists.llvm.org
Fri May 13 20:16:47 PDT 2016
Author: davidxl
Date: Fri May 13 22:16:47 2016
New Revision: 269533
URL: http://llvm.org/viewvc/llvm-project?rev=269533&view=rev
Log:
minor cleanup -- reset buffer pointer
Modified:
compiler-rt/trunk/lib/profile/InstrProfilingWriter.c
Modified: compiler-rt/trunk/lib/profile/InstrProfilingWriter.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/profile/InstrProfilingWriter.c?rev=269533&r1=269532&r2=269533&view=diff
==============================================================================
--- compiler-rt/trunk/lib/profile/InstrProfilingWriter.c (original)
+++ compiler-rt/trunk/lib/profile/InstrProfilingWriter.c Fri May 13 22:16:47 2016
@@ -59,8 +59,11 @@ lprofCreateBufferIO(WriterCallback FileW
}
COMPILER_RT_VISIBILITY void lprofDeleteBufferIO(ProfBufferIO *BufferIO) {
- if (DynamicBufferIOBuffer)
+ if (DynamicBufferIOBuffer) {
+ DynamicBufferIOBuffer = 0;
+ VPBufferSize = 0;
FreeHook(DynamicBufferIOBuffer);
+ }
}
COMPILER_RT_VISIBILITY int
More information about the llvm-commits
mailing list