Fix SelectionDAG -view-*-dags filtering
authorMehdi Amini <mehdi.amini@apple.com>
Thu, 15 Jan 2015 12:03:32 +0000 (12:03 +0000)
committerMehdi Amini <mehdi.amini@apple.com>
Thu, 15 Jan 2015 12:03:32 +0000 (12:03 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@226163 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp

index 58f029f..7ee06fc 100644 (file)
@@ -659,7 +659,7 @@ void SelectionDAGISel::CodeGenAndEmitDAG() {
   (void)BlockNumber;
   bool MatchFilterBB = false; (void)MatchFilterBB;
 #ifndef NDEBUG
-  MatchFilterBB = (!FilterDAGBasicBlockName.empty() &&
+  MatchFilterBB = (FilterDAGBasicBlockName.empty() ||
                    FilterDAGBasicBlockName ==
                        FuncInfo->MBB->getBasicBlock()->getName().str());
 #endif