summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2012-11-16 17:32:33 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2012-11-16 17:32:33 +0000
commit1358841e91695bd0e498c02d064c480dc53c566a (patch)
tree18314b763355365696689ae577b71569475feaf8 /include
parente0827d888003913bc8c391c42921264f07c9389e (diff)
downloadllvm-1358841e91695bd0e498c02d064c480dc53c566a.tar.gz
llvm-1358841e91695bd0e498c02d064c480dc53c566a.tar.bz2
llvm-1358841e91695bd0e498c02d064c480dc53c566a.tar.xz
Work around a layering violation from Target to CodeGen.
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
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Target/TargetInstrInfo.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Target/TargetInstrInfo.h b/include/llvm/Target/TargetInstrInfo.h
index 95d2b916aa..d2e06114d8 100644
--- a/include/llvm/Target/TargetInstrInfo.h
+++ b/include/llvm/Target/TargetInstrInfo.h
@@ -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;
}