diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2012-11-16 17:32:33 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2012-11-16 17:32:33 +0000 |
commit | 1358841e91695bd0e498c02d064c480dc53c566a (patch) | |
tree | 18314b763355365696689ae577b71569475feaf8 /include | |
parent | e0827d888003913bc8c391c42921264f07c9389e (diff) | |
download | external_llvm-1358841e91695bd0e498c02d064c480dc53c566a.zip external_llvm-1358841e91695bd0e498c02d064c480dc53c566a.tar.gz external_llvm-1358841e91695bd0e498c02d064c480dc53c566a.tar.bz2 |
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.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Target/TargetInstrInfo.h b/include/llvm/Target/TargetInstrInfo.h index 95d2b91..d2e0611 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; } |