isThumb2 really should mean thumb2 only, not thumb2+.
authorEvan Cheng <evan.cheng@apple.com>
Mon, 6 Jul 2009 22:29:14 +0000 (22:29 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Mon, 6 Jul 2009 22:29:14 +0000 (22:29 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74871 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/ARMSubtarget.h

index 5110b3157c482e1ecabb1aa280eabf7a43bbfe8e..60c3bd13ed7bbe6a63693a5302c9b244fe77f44e 100644 (file)
@@ -108,7 +108,7 @@ protected:
 
   bool isThumb() const { return IsThumb; }
   bool isThumb1Only() const { return IsThumb && (ThumbMode == Thumb1); }
-  bool isThumb2() const { return IsThumb && (ThumbMode >= Thumb2); }
+  bool isThumb2() const { return IsThumb && (ThumbMode == Thumb2); }
   bool hasThumb2() const { return ThumbMode >= Thumb2; }
 
   bool isR9Reserved() const { return IsR9Reserved; }