[PATCH] D49529: [profile] Add interface to get profile filename

David Li via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 18 23:55:22 PDT 2018


davidxl added inline comments.


================
Comment at: lib/profile/InstrProfilingFile.c:529
+  Length = getCurFilenameLength();
+  FilenameBuf = (char *)COMPILER_RT_ALLOCA(Length + 1);
+  Filename = getCurFilename(FilenameBuf);
----------------
Why not directly passing the malloced buffer to getCurFilename?


Repository:
  rCRT Compiler Runtime

https://reviews.llvm.org/D49529





More information about the llvm-commits mailing list