File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
llvm/include/llvm/DebugInfo/LogicalView/Core Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -246,20 +246,17 @@ class LVObject {
246246 virtual void setName (StringRef ObjectName) {}
247247
248248 LVElement *getParent () const {
249- assert ((!Parent.Element ||
250- (Parent.Element && static_cast <LVElement *>(Parent.Element ))) &&
249+ assert ((!Parent.Element || static_cast <LVElement *>(Parent.Element )) &&
251250 " Invalid element" );
252251 return Parent.Element ;
253252 }
254253 LVScope *getParentScope () const {
255- assert ((!Parent.Scope ||
256- (Parent.Scope && static_cast <LVScope *>(Parent.Scope ))) &&
254+ assert ((!Parent.Scope || static_cast <LVScope *>(Parent.Scope )) &&
257255 " Invalid scope" );
258256 return Parent.Scope ;
259257 }
260258 LVSymbol *getParentSymbol () const {
261- assert ((!Parent.Symbol ||
262- (Parent.Symbol && static_cast <LVSymbol *>(Parent.Symbol ))) &&
259+ assert ((!Parent.Symbol || static_cast <LVSymbol *>(Parent.Symbol )) &&
263260 " Invalid symbol" );
264261 return Parent.Symbol ;
265262 }
You can’t perform that action at this time.
0 commit comments