]> granicus.if.org Git - clang/commitdiff
Perform default function/array conversion for input arguments to inline asm statement...
authorAnders Carlsson <andersca@mac.com>
Wed, 31 Dec 2008 07:27:38 +0000 (07:27 +0000)
committerAnders Carlsson <andersca@mac.com>
Wed, 31 Dec 2008 07:27:38 +0000 (07:27 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@61515 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaStmt.cpp

index b0f0c9b8ecee849f9c02d3f9d50db5f96edfc47a..23d3cd5fae83789313fc555a40f668266f1ea244 100644 (file)
@@ -892,6 +892,9 @@ Sema::StmtResult Sema::ActOnAsmStmt(SourceLocation AsmLoc,
         << InputExpr->getType() << InputConstraint
         << InputExpr->getSubExpr()->getSourceRange();
     }
+    
+    if (info & TargetInfo::CI_AllowsRegister)
+      DefaultFunctionArrayConversion(Exprs[i]);
   }
   
   // Check that the clobbers are valid.