summaryrefslogtreecommitdiff
path: root/lib/CodeGen
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2011-10-12 15:56:56 +0000
committerDan Gohman <gohman@apple.com>2011-10-12 15:56:56 +0000
commit9e15d658c99c3f0717cb83cc2bd2aa29abdbcdbb (patch)
tree613f1c8887a77f0e00ea733780f2d6769b98bb57 /lib/CodeGen
parent18dcb87f6beb228011545e0210c842d6741d5805 (diff)
downloadllvm-9e15d658c99c3f0717cb83cc2bd2aa29abdbcdbb.tar.gz
llvm-9e15d658c99c3f0717cb83cc2bd2aa29abdbcdbb.tar.bz2
llvm-9e15d658c99c3f0717cb83cc2bd2aa29abdbcdbb.tar.xz
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
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/SelectionDAG/FastISel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/FastISel.cpp b/lib/CodeGen/SelectionDAG/FastISel.cpp
index fbd0c623eb..e8f8c73d68 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<CallInst>(I);
// 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.
if (!IA->getConstraintString().empty())
return false;