projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b3e5c5
)
[clang][Interp][NFC] Simplify visitReturnStmt()
author
Timm Bäder
<tbaeder@redhat.com>
Mon, 31 Oct 2022 07:33:30 +0000
(08:33 +0100)
committer
Timm Bäder
<tbaeder@redhat.com>
Mon, 7 Nov 2022 08:42:41 +0000
(09:42 +0100)
clang/lib/AST/Interp/ByteCodeStmtGen.cpp
patch
|
blob
|
history
diff --git
a/clang/lib/AST/Interp/ByteCodeStmtGen.cpp
b/clang/lib/AST/Interp/ByteCodeStmtGen.cpp
index
81243d8
..
a6aa8d8
100644
(file)
--- a/
clang/lib/AST/Interp/ByteCodeStmtGen.cpp
+++ b/
clang/lib/AST/Interp/ByteCodeStmtGen.cpp
@@
-237,12
+237,11
@@
bool ByteCodeStmtGen<Emitter>::visitReturnStmt(const ReturnStmt *RS) {
this->emitCleanup();
return this->emitRetVoid(RS);
}
- } else {
- this->emitCleanup();
- if (!this->emitRetVoid(RS))
- return false;
- return true;
}
+
+ // Void return.
+ this->emitCleanup();
+ return this->emitRetVoid(RS);
}
template <class Emitter>