From: Dan Gohman Date: Wed, 12 Oct 2011 15:56:56 +0000 (+0000) Subject: Fix a thinko that Nick noticed. The previous code actually worked as X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=9e15d658c99c3f0717cb83cc2bd2aa29abdbcdbb;p=oota-llvm.git 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 --- diff --git a/lib/CodeGen/SelectionDAG/FastISel.cpp b/lib/CodeGen/SelectionDAG/FastISel.cpp index fbd0c623eb6..e8f8c73d688 100644 --- a/lib/CodeGen/SelectionDAG/FastISel.cpp +++ b/lib/CodeGen/SelectionDAG/FastISel.cpp @@ -494,7 +494,7 @@ bool FastISel::SelectCall(const User *I) { const CallInst *Call = cast(I); // Handle simple inline asms. - if (const InlineAsm *IA = dyn_cast(Call->getArgOperand(0))) { + if (const InlineAsm *IA = dyn_cast(Call->getCalledValue())) { // Don't attempt to handle constraints. if (!IA->getConstraintString().empty()) return false;