summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--llvm/tools/llvm-ctxprof-util/llvm-ctxprof-util.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/tools/llvm-ctxprof-util/llvm-ctxprof-util.cpp b/llvm/tools/llvm-ctxprof-util/llvm-ctxprof-util.cpp
index 0fad4ee4360d..485f6c7d33d9 100644
--- a/llvm/tools/llvm-ctxprof-util/llvm-ctxprof-util.cpp
+++ b/llvm/tools/llvm-ctxprof-util/llvm-ctxprof-util.cpp
@@ -48,7 +48,8 @@ static cl::opt<std::string> OutputFilename("output", cl::value_desc("output"),
// Save the bitstream profile from the JSON representation.
Error convertFromJSON() {
- auto BufOrError = MemoryBuffer::getFileOrSTDIN(InputFilename);
+ auto BufOrError =
+ MemoryBuffer::getFileOrSTDIN(InputFilename, /*IsText=*/true);
if (!BufOrError)
return createFileError(InputFilename, BufOrError.getError());