From 243e7c5f8c8758318baa5954b8aa666ec1732f81 Mon Sep 17 00:00:00 2001 From: Kostya Serebryany Date: Wed, 26 Aug 2015 21:55:19 +0000 Subject: [PATCH] [libFuzzer] fix minor inefficiency, PR24584 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@246087 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Fuzzer/FuzzerIO.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Fuzzer/FuzzerIO.cpp b/lib/Fuzzer/FuzzerIO.cpp index f0295e9a730..a68c6c579bf 100644 --- a/lib/Fuzzer/FuzzerIO.cpp +++ b/lib/Fuzzer/FuzzerIO.cpp @@ -32,7 +32,7 @@ static std::vector ListFilesInDir(const std::string &Dir, long *Epoch) { std::vector V; if (Epoch) { - auto E = GetEpoch(Dir.c_str()); + auto E = GetEpoch(Dir); if (*Epoch >= E) return V; *Epoch = E; } -- 2.34.1