[libFuzzer] fix minor inefficiency, PR24584
authorKostya Serebryany <kcc@google.com>
Wed, 26 Aug 2015 21:55:19 +0000 (21:55 +0000)
committerKostya Serebryany <kcc@google.com>
Wed, 26 Aug 2015 21:55:19 +0000 (21:55 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@246087 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Fuzzer/FuzzerIO.cpp

index f0295e9a730875aa545c50fb361bf6879631d554..a68c6c579bfb8b445fc74270200ce680c3927681 100644 (file)
@@ -32,7 +32,7 @@ static std::vector<std::string> ListFilesInDir(const std::string &Dir,
                                                long *Epoch) {
   std::vector<std::string> V;
   if (Epoch) {
-    auto E = GetEpoch(Dir.c_str());
+    auto E = GetEpoch(Dir);
     if (*Epoch >= E) return V;
     *Epoch = E;
   }