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 b90459c commit 0daf453Copy full SHA for 0daf453
clang/lib/Analysis/LifetimeSafety/Origins.cpp
@@ -34,6 +34,8 @@ Origin &OriginManager::addOrigin(OriginID ID, const clang::Expr &E) {
34
35
// TODO: Mark this method as const once we remove the call to getOrCreate.
36
OriginID OriginManager::get(const Expr &E) {
37
+ if (auto *ParenIgnored = E.IgnoreParens(); ParenIgnored != &E)
38
+ return get(*ParenIgnored);
39
auto It = ExprToOriginID.find(&E);
40
if (It != ExprToOriginID.end())
41
return It->second;
0 commit comments