Author: andersca
Date: Wed Dec 31 01:27:38 2008
New Revision: 61515

URL: http://llvm.org/viewvc/llvm-project?rev=61515&view=rev
Log:
Perform default function/array conversion for input arguments to inline asm 
statements if the input expr can be a memory operand

Modified:
    cfe/trunk/lib/Sema/SemaStmt.cpp

Modified: cfe/trunk/lib/Sema/SemaStmt.cpp
URL: 
http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaStmt.cpp?rev=61515&r1=61514&r2=61515&view=diff

==============================================================================
--- cfe/trunk/lib/Sema/SemaStmt.cpp (original)
+++ cfe/trunk/lib/Sema/SemaStmt.cpp Wed Dec 31 01:27:38 2008
@@ -892,6 +892,9 @@
         << InputExpr->getType() << InputConstraint
         << InputExpr->getSubExpr()->getSourceRange();
     }
+    
+    if (info & TargetInfo::CI_AllowsRegister)
+      DefaultFunctionArrayConversion(Exprs[i]);
   }
   
   // Check that the clobbers are valid.


_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to