From: Kostya Serebryany Date: Wed, 26 Aug 2015 21:55:19 +0000 (+0000) Subject: [libFuzzer] fix minor inefficiency, PR24584 X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff_plain;h=243e7c5f8c8758318baa5954b8aa666ec1732f81 [libFuzzer] fix minor inefficiency, PR24584 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@246087 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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; }