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.
-ftime-trace
1 parent 47144a0 commit baf2cfaCopy full SHA for baf2cfa
clang/include/clang/StaticAnalyzer/Core/PathSensitive/SymbolManager.h
@@ -103,10 +103,7 @@ class SymbolConjured : public SymbolData {
103
const Stmt *getStmt() const {
104
switch (Elem->getKind()) {
105
case CFGElement::Initializer:
106
- if (const auto *Init = Elem->castAs<CFGInitializer>().getInitializer()) {
107
- return Init->getInit();
108
- }
109
- return nullptr;
+ return Elem->castAs<CFGInitializer>().getInitializer()->getInit();
110
case CFGElement::ScopeBegin:
111
return Elem->castAs<CFGScopeBegin>().getTriggerStmt();
112
case CFGElement::ScopeEnd:
clang/test/Analysis/ftime-trace-no-init.cpp
0 commit comments