[clang] 3262aea - [clang][Interp][NFC] Add missing return statement
Timm Bäder via cfe-commits
cfe-commits at lists.llvm.org
Sun Jul 9 07:16:50 PDT 2023
Author: Timm Bäder
Date: 2023-07-09T16:13:18+02:00
New Revision: 3262aea06d36b1fbf3eb16d47afec742c18fd5e8
URL: https://github.com/llvm/llvm-project/commit/3262aea06d36b1fbf3eb16d47afec742c18fd5e8
DIFF: https://github.com/llvm/llvm-project/commit/3262aea06d36b1fbf3eb16d47afec742c18fd5e8.diff
LOG: [clang][Interp][NFC] Add missing return statement
I removed the else here, but forgot to add a return before.
Interestingly, none of the existing test cases triggered a problem. A
future commit will add a test case.
Added:
Modified:
clang/lib/AST/Interp/Pointer.cpp
Removed:
################################################################################
diff --git a/clang/lib/AST/Interp/Pointer.cpp b/clang/lib/AST/Interp/Pointer.cpp
index 9c55a55d42a74f..5b304019b511e0 100644
--- a/clang/lib/AST/Interp/Pointer.cpp
+++ b/clang/lib/AST/Interp/Pointer.cpp
@@ -185,6 +185,7 @@ void Pointer::initialize() const {
free(Map);
Map = (InitMap *)-1;
}
+ return;
}
// Field has its bit in an inline descriptor.
More information about the cfe-commits
mailing list