diff options
author | Dan Gohman <gohman@apple.com> | 2011-10-12 15:56:56 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2011-10-12 15:56:56 +0000 |
commit | de239d26475ccaa1c1d23c4119ba96bf93a8d6d4 (patch) | |
tree | 731865f5d76469755a5ba7d8461f040c683b9d63 /llvm/lib/CodeGen | |
parent | 6a0e23ff8ba892d8c99f09add83a6738aa26179c (diff) | |
download | bcm5719-llvm-de239d26475ccaa1c1d23c4119ba96bf93a8d6d4.tar.gz bcm5719-llvm-de239d26475ccaa1c1d23c4119ba96bf93a8d6d4.zip |
Fix a thinko that Nick noticed. The previous code actually worked as
intended, but only by accident.
llvm-svn: 141779
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/FastISel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp b/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp index fbd0c623eb6..e8f8c73d688 100644 --- a/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp +++ b/llvm/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; |