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:
66d2add
)
[clang][Interp][NFC] Add an assertion
author
Timm Bäder
<tbaeder@redhat.com>
Wed, 11 Jan 2023 11:48:12 +0000
(12:48 +0100)
committer
Timm Bäder
<tbaeder@redhat.com>
Wed, 11 Jan 2023 12:05:14 +0000
(13:05 +0100)
This is unnecessary in the current state of the interpreter, but will ne
important later.
clang/lib/AST/Interp/ByteCodeExprGen.h
patch
|
blob
|
history
diff --git
a/clang/lib/AST/Interp/ByteCodeExprGen.h
b/clang/lib/AST/Interp/ByteCodeExprGen.h
index
f817fb4
..
4e4f2ee
100644
(file)
--- a/
clang/lib/AST/Interp/ByteCodeExprGen.h
+++ b/
clang/lib/AST/Interp/ByteCodeExprGen.h
@@
-359,6
+359,7
@@
public:
ExprScope(ByteCodeExprGen<Emitter> *Ctx) : LocalScope<Emitter>(Ctx) {}
void addExtended(const Scope::Local &Local) override {
+ assert(this->Parent);
this->Parent->addLocal(Local);
}
};