From 9af4859d1b4867901cf0e573e3b6d4a9d6d328dd Mon Sep 17 00:00:00 2001 From: Xinliang David Li Date: Mon, 16 May 2016 20:33:30 +0000 Subject: [profile] minor code restructuring /NFC This is one of the enabler patch to allow value profiler to allocate counter statically. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@269689 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/profile/InstrProfiling.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/profile/InstrProfiling.c') diff --git a/lib/profile/InstrProfiling.c b/lib/profile/InstrProfiling.c index 1c1d85af9..c763a4423 100644 --- a/lib/profile/InstrProfiling.c +++ b/lib/profile/InstrProfiling.c @@ -61,7 +61,7 @@ COMPILER_RT_VISIBILITY void __llvm_profile_reset_counters(void) { ValueProfNode *CurrentVNode = ValueCounters[i]; while (CurrentVNode) { - CurrentVNode->VData.Count = 0; + CurrentVNode->Count = 0; CurrentVNode = CurrentVNode->Next; } } -- cgit v1.2.3