[llvm] [DebugInfo] Get rid of redundant conditional checks in `/DebugInfo` (PR #92111)

Rajveer Singh Bharadwaj via llvm-commits llvm-commits at lists.llvm.org
Wed May 15 09:48:05 PDT 2024


================
@@ -246,20 +246,17 @@ class LVObject {
   virtual void setName(StringRef ObjectName) {}
 
   LVElement *getParent() const {
-    assert((!Parent.Element ||
-            (Parent.Element && static_cast<LVElement *>(Parent.Element))) &&
+    assert((!Parent.Element || static_cast<LVElement *>(Parent.Element)) &&
----------------
Rajveer100 wrote:

No problem!

https://github.com/llvm/llvm-project/pull/92111


More information about the llvm-commits mailing list