Remove redundant check for nullptr.
authorAdrian Prantl <aprantl@apple.com>
Mon, 27 Mar 2017 17:36:31 +0000 (17:36 +0000)
committerAdrian Prantl <aprantl@apple.com>
Mon, 27 Mar 2017 17:36:31 +0000 (17:36 +0000)
llvm-svn: 298866

llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp

index 5d117fd..383b8cd 100644 (file)
@@ -947,10 +947,10 @@ void CodeViewDebug::collectVariableInfo(const DISubprogram *SP) {
 
       // Handle fragments.
       auto Fragment = DIExpr->getFragmentInfo();
-      if (DIExpr && Fragment) {
+      if (Fragment) {
         IsSubfield = true;
         StructOffset = Fragment->OffsetInBits / 8;
-      } else if (DIExpr && DIExpr->getNumElements() > 0) {
+      } else if (DIExpr->getNumElements() > 0) {
         continue; // Ignore unrecognized exprs.
       }