[llvm-commits] [llvm] r168173 - /llvm/trunk/include/llvm/Target/TargetInstrInfo.h
Benjamin Kramer
benny.kra at googlemail.com
Fri Nov 16 09:32:33 PST 2012
Author: d0k
Date: Fri Nov 16 11:32:33 2012
New Revision: 168173
URL: http://llvm.org/viewvc/llvm-project?rev=168173&view=rev
Log:
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.
Modified:
llvm/trunk/include/llvm/Target/TargetInstrInfo.h
Modified: llvm/trunk/include/llvm/Target/TargetInstrInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Target/TargetInstrInfo.h?rev=168173&r1=168172&r2=168173&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Target/TargetInstrInfo.h (original)
+++ llvm/trunk/include/llvm/Target/TargetInstrInfo.h Fri Nov 16 11:32:33 2012
@@ -435,7 +435,7 @@
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;
}
More information about the llvm-commits
mailing list