Fix a thinko that Nick noticed. The previous code actually worked as
authorDan Gohman <gohman@apple.com>
Wed, 12 Oct 2011 15:56:56 +0000 (15:56 +0000)
committerDan Gohman <gohman@apple.com>
Wed, 12 Oct 2011 15:56:56 +0000 (15:56 +0000)
intended, but only by accident.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141779 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/FastISel.cpp

index fbd0c623eb693e4aad7654906ba3211fad181317..e8f8c73d6883c8046f83ad5c2cd16d757a6d9aa8 100644 (file)
@@ -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;