mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-11 21:38:19 +00:00
Fix a thinko that Nick noticed. The previous code actually worked as
intended, but only by accident. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141779 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -494,7 +494,7 @@ bool FastISel::SelectCall(const User *I) {
|
|||||||
const CallInst *Call = cast<CallInst>(I);
|
const CallInst *Call = cast<CallInst>(I);
|
||||||
|
|
||||||
// Handle simple inline asms.
|
// Handle simple inline asms.
|
||||||
if (const InlineAsm *IA = dyn_cast<InlineAsm>(Call->getArgOperand(0))) {
|
if (const InlineAsm *IA = dyn_cast<InlineAsm>(Call->getCalledValue())) {
|
||||||
// Don't attempt to handle constraints.
|
// Don't attempt to handle constraints.
|
||||||
if (!IA->getConstraintString().empty())
|
if (!IA->getConstraintString().empty())
|
||||||
return false;
|
return false;
|
||||||
|
Reference in New Issue
Block a user