[libFuzzer] fix minor inefficiency, PR24584
[oota-llvm.git] / 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;
   }