Work around a layering violation from Target to CodeGen.
authorBenjamin Kramer <benny.kra@googlemail.com>
Fri, 16 Nov 2012 17:32:33 +0000 (17:32 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Fri, 16 Nov 2012 17:32:33 +0000 (17:32 +0000)
Technically this is still a layering violation but it's header-only which makes
it less harmful. No functionality change.

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

include/llvm/Target/TargetInstrInfo.h

index 95d2b916aae99231ab94584a180946b1e169f923..d2e06114d800e57a725268fabd4c27b244401b4b 100644 (file)
@@ -435,7 +435,7 @@ public:
                              SmallVectorImpl<MachineOperand> &Cond,
                              unsigned &TrueOp, unsigned &FalseOp,
                              bool &Optimizable) const {
-    assert(MI && MI->isSelect() && "MI must be a select instruction");
+    assert(MI && MI->getDesc().isSelect() && "MI must be a select instruction");
     return true;
   }