Use auto for scope-guard locals v.s. folly::ScopeGuard
[folly.git] / folly / experimental / symbolizer / Elf.cpp
index 2ff63863126d517a7a2351f053117402ccaef663..444943acb91423c9926275cb85deacfe82340466 100644 (file)
@@ -76,7 +76,7 @@ int ElfFile::openNoThrow(
   // Always close fd and unmap in case of failure along the way to avoid
   // check failure above if we leave fd != -1 and the object is recycled
   // like it is inside SignalSafeElfCache
-  ScopeGuard guard = makeGuard([&] { reset(); });
+  auto guard = makeGuard([&] { reset(); });
   struct stat st;
   int r = fstat(fd_, &st);
   if (r == -1) {