We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e18ae65 commit cdbb203Copy full SHA for cdbb203
clang/lib/Analysis/LifetimeSafety.cpp
@@ -139,9 +139,8 @@ class OriginManager {
139
140
OriginID get(const Expr &E) {
141
// Origin of DeclRefExpr is that of the declaration it refers to.
142
- if (const auto *DRE = dyn_cast<DeclRefExpr>(&E)) {
+ if (const auto *DRE = dyn_cast<DeclRefExpr>(&E))
143
return get(*DRE->getDecl());
144
- }
145
auto It = ExprToOriginID.find(&E);
146
// TODO: This should be an assert(It != ExprToOriginID.end()). The current
147
// implementation falls back to getOrCreate to avoid crashing on
0 commit comments