Author: Timm Bäder
Date: 2024-02-15T17:49:31+01:00
New Revision: c81929e9a843447fa52d21f7ce2e6788d740f2f4

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

LOG: [clang][Interp][NFC] Return std::nullopt explicitly.

Added: 
    

Modified: 
    clang/lib/AST/Interp/ByteCodeExprGen.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/AST/Interp/ByteCodeExprGen.cpp 
b/clang/lib/AST/Interp/ByteCodeExprGen.cpp
index 31e7f02dd4305c..25208f7dafbcd6 100644
--- a/clang/lib/AST/Interp/ByteCodeExprGen.cpp
+++ b/clang/lib/AST/Interp/ByteCodeExprGen.cpp
@@ -2586,7 +2586,7 @@ ByteCodeExprGen<Emitter>::allocateLocal(DeclTy &&Src, 
bool IsExtended) {
       Src, Ty.getTypePtr(), Descriptor::InlineDescMD, Ty.isConstQualified(),
       IsTemporary, /*IsMutable=*/false, Init);
   if (!D)
-    return {};
+    return std::nullopt;
 
   Scope::Local Local = this->createLocal(D);
   if (Key)


        
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to