]> granicus.if.org Git - llvm/commitdiff
try and appease gcc
authorAdrian Prantl <aprantl@apple.com>
Thu, 28 Sep 2017 18:27:00 +0000 (18:27 +0000)
committerAdrian Prantl <aprantl@apple.com>
Thu, 28 Sep 2017 18:27:00 +0000 (18:27 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@314442 91177308-0d34-0410-b5e6-96231b3b80d8

tools/llvm-dwarfdump/llvm-dwarfdump.cpp

index 5eea7041712cc240a22366dad07d85b9bfed1b5a..9c4a7c88bb36db2a785f02cbe7cd343e6e58b8c4 100644 (file)
@@ -246,7 +246,7 @@ static bool dumpObjectFile(ObjectFile &Obj, DWARFContext &DICtx, Twine Filename,
 
   // Handle the --find option and lower it to --debug-info=<offset>.
   if (!Find.empty()) {
-    DumpOffsets[DIDT_ID_DebugInfo] = [&]() -> Optional<uint64_t> {
+    DumpOffsets[DIDT_ID_DebugInfo] = [&]() -> llvm::Optional<uint64_t> {
       for (auto Name : Find)
         for (auto Entry : DICtx.getAppleNames().equal_range(Name))
           for (auto Atom : Entry)