Fix a think-o in the condition here. =[ I would commit the test that
authorChandler Carruth <chandlerc@gmail.com>
Thu, 31 Jan 2013 23:43:12 +0000 (23:43 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Thu, 31 Jan 2013 23:43:12 +0000 (23:43 +0000)
caught this, but I want that in a separate commit in case there is
a need to revert the actual functional bit as part of reverting other
patches. This way, the commits relating to just getting the RTTI bits in
place are separate from the functional changes that start using them.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174117 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/MC/MCELFStreamer.h

index 0413613232633eb6ba2901d9463628a402204678..f78de157013809e126368f1a6b6c99e19a7a6003 100644 (file)
@@ -87,7 +87,7 @@ public:
   /// @}
 
   static bool classof(const MCStreamer *S) {
-    return S->getKind() == SK_ELFStreamer && S->getKind() == SK_ARMELFStreamer;
+    return S->getKind() == SK_ELFStreamer || S->getKind() == SK_ARMELFStreamer;
   }
 
 private: