mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-20 20:30:56 +00:00
TargetLowering::isOperandValidForConstraint
llvm-svn: 31319
This commit is contained in:
parent
d9afd310a6
commit
a44a27dc47
@ -2487,8 +2487,13 @@ void SelectionDAGLowering::visitInlineAsm(CallInst &I) {
|
||||
CTy = TLI.getConstraintType(ConstraintCode[0]);
|
||||
|
||||
if (CTy == TargetLowering::C_Other) {
|
||||
if (!TLI.isOperandValidForConstraint(InOperandVal, ConstraintCode[0]))
|
||||
assert(0 && "MATCH FAIL!");
|
||||
InOperandVal = TLI.isOperandValidForConstraint(InOperandVal,
|
||||
ConstraintCode[0], DAG);
|
||||
if (!InOperandVal.Val) {
|
||||
std::cerr << "Invalid operand for inline asm constraint '"
|
||||
<< ConstraintCode << "'!\n";
|
||||
exit(1);
|
||||
}
|
||||
|
||||
// Add information to the INLINEASM node to know about this input.
|
||||
unsigned ResOpType = 3 /*IMM*/ | (1 << 3);
|
||||
|
Loading…
x
Reference in New Issue
Block a user