forked from OSchip/llvm-project
Add a diagnostic string to an assert.
This commit is contained in:
parent
7d913becfc
commit
cb21b16822
|
@ -3408,7 +3408,7 @@ bool X86FastISel::fastLowerCall(CallLoweringInfo &CLI) {
|
|||
TII.get(TargetOpcode::COPY), VA.getLocReg()).addReg(ArgReg);
|
||||
OutRegs.push_back(VA.getLocReg());
|
||||
} else {
|
||||
assert(VA.isMemLoc());
|
||||
assert(VA.isMemLoc() && "Unknown value location!");
|
||||
|
||||
// Don't emit stores for undef values.
|
||||
if (isa<UndefValue>(ArgVal))
|
||||
|
|
Loading…
Reference in New Issue