Fix missing return from 9324cc2ca951fe5fe11c85470cb08e699c59499c
authorErich Keane <erich.keane@intel.com>
Tue, 28 Sep 2021 14:30:06 +0000 (07:30 -0700)
committerErich Keane <erich.keane@intel.com>
Tue, 28 Sep 2021 14:30:06 +0000 (07:30 -0700)
No idea how my local machine missed this, but I saw no warning for it,
it seems to have been lost in some level of translating this back for
upstreaming.

clang/lib/AST/Expr.cpp

index 7972f9a..f0c195c 100644 (file)
@@ -547,6 +547,7 @@ std::string SYCLUniqueStableNameExpr::ComputeName(ASTContext &Context,
                            const NamedDecl *ND) -> llvm::Optional<unsigned> {
     if (const auto *RD = dyn_cast<CXXRecordDecl>(ND))
       return RD->getDeviceLambdaManglingNumber();
+    return llvm::None;
   };
 
   std::unique_ptr<MangleContext> Ctx{ItaniumMangleContext::create(