File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -195,6 +195,8 @@ static const int dummy_name[0] COMPILER_RT_SECTION(
195195 COMPILER_RT_SEG INSTR_PROF_NAME_SECT_NAME );
196196static int dummy_vnds [0 ] COMPILER_RT_SECTION (
197197 COMPILER_RT_SEG INSTR_PROF_VNODES_SECT_NAME );
198+ static int dummy_orderfile [0 ] COMPILER_RT_SECTION (
199+ COMPILER_RT_SEG INSTR_PROF_ORDERFILE_SECT_NAME );
198200
199201// To avoid GC'ing of the dummy variables by the linker, reference them in an
200202// array and reference the array in the runtime registration code
@@ -206,7 +208,7 @@ static int dummy_vnds[0] COMPILER_RT_SECTION(
206208COMPILER_RT_VISIBILITY
207209void * __llvm_profile_keep [] = {(void * )& dummy_cnts , (void * )& dummy_bits ,
208210 (void * )& dummy_data , (void * )& dummy_name ,
209- (void * )& dummy_vnds };
211+ (void * )& dummy_vnds , ( void * ) & dummy_orderfile };
210212#ifdef __GNUC__
211213#pragma GCC diagnostic pop
212214#endif
Original file line number Diff line number Diff line change 1+ // RUN: %clang_pgogen %s -bexpall
2+ // RUN: %clang_pgogen %s -bexpfull
3+
4+ #include <string.h>
5+ int ar [10 ];
6+ int n ;
7+ int main () {
8+ memcpy (ar , ar + 1 , n );
9+ };
You can’t perform that action at this time.
0 commit comments