[clang] 1cd3ae0 - Fix missing return from 9324cc2ca951fe5fe11c85470cb08e699c59499c

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Tue Sep 28 07:35:59 PDT 2021


Author: Erich Keane
Date: 2021-09-28T07:30:06-07:00
New Revision: 1cd3ae019892c81a8a81daf4e2baffa3be6270db

URL: https://github.com/llvm/llvm-project/commit/1cd3ae019892c81a8a81daf4e2baffa3be6270db
DIFF: https://github.com/llvm/llvm-project/commit/1cd3ae019892c81a8a81daf4e2baffa3be6270db.diff

LOG: Fix missing return from 9324cc2ca951fe5fe11c85470cb08e699c59499c

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.

Added: 
    

Modified: 
    clang/lib/AST/Expr.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/AST/Expr.cpp b/clang/lib/AST/Expr.cpp
index 7972f9a1aee7..f0c195c08ccb 100644
--- a/clang/lib/AST/Expr.cpp
+++ b/clang/lib/AST/Expr.cpp
@@ -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(


        


More information about the cfe-commits mailing list