diff options
author | Anders Carlsson <andersca@mac.com> | 2008-12-31 07:27:38 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2008-12-31 07:27:38 +0000 |
commit | 562489e0c8bbfc2490377542590e048cde822934 (patch) | |
tree | 213f52dc83251bb41a287b2391e126795d766374 | |
parent | f780abc21c39cd4731b9e38f2d2d9f7d1510bd7b (diff) |
Perform default function/array conversion for input arguments to inline asm statements if the input expr can be a memory operand
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@61515 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Sema/SemaStmt.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Sema/SemaStmt.cpp b/lib/Sema/SemaStmt.cpp index b0f0c9b8ec..23d3cd5fae 100644 --- a/lib/Sema/SemaStmt.cpp +++ b/lib/Sema/SemaStmt.cpp @@ -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. |