[llvm] r174117 - Fix a think-o in the condition here. =[ I would commit the test that

Chandler Carruth chandlerc at gmail.com
Thu Jan 31 15:43:12 PST 2013


Author: chandlerc
Date: Thu Jan 31 17:43:12 2013
New Revision: 174117

URL: http://llvm.org/viewvc/llvm-project?rev=174117&view=rev
Log:
Fix a think-o in the condition here. =[ I would commit the test that
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.

Modified:
    llvm/trunk/include/llvm/MC/MCELFStreamer.h

Modified: llvm/trunk/include/llvm/MC/MCELFStreamer.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/MC/MCELFStreamer.h?rev=174117&r1=174116&r2=174117&view=diff
==============================================================================
--- llvm/trunk/include/llvm/MC/MCELFStreamer.h (original)
+++ llvm/trunk/include/llvm/MC/MCELFStreamer.h Thu Jan 31 17:43:12 2013
@@ -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:





More information about the llvm-commits mailing list