[llvm-commits] [llvm] r141779 - /llvm/trunk/lib/CodeGen/SelectionDAG/FastISel.cpp

Dan Gohman gohman at apple.com
Wed Oct 12 08:56:56 PDT 2011


Author: djg
Date: Wed Oct 12 10:56:56 2011
New Revision: 141779

URL: http://llvm.org/viewvc/llvm-project?rev=141779&view=rev
Log:
Fix a thinko that Nick noticed. The previous code actually worked as
intended, but only by accident.

Modified:
    llvm/trunk/lib/CodeGen/SelectionDAG/FastISel.cpp

Modified: llvm/trunk/lib/CodeGen/SelectionDAG/FastISel.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/FastISel.cpp?rev=141779&r1=141778&r2=141779&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/FastISel.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/FastISel.cpp Wed Oct 12 10:56:56 2011
@@ -494,7 +494,7 @@
   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;





More information about the llvm-commits mailing list