[clang] c81929e - [clang][Interp][NFC] Return std::nullopt explicitly.
Timm Bäder via cfe-commits
cfe-commits at lists.llvm.org
Thu Feb 15 08:49:48 PST 2024
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)
More information about the cfe-commits
mailing list