diff --git a/clang/lib/CodeGen/CGStmt.cpp b/clang/lib/CodeGen/CGStmt.cpp index eb7697d3b1b1..441047e1bc50 100644 --- a/clang/lib/CodeGen/CGStmt.cpp +++ b/clang/lib/CodeGen/CGStmt.cpp @@ -726,7 +726,7 @@ SimplifyConstraint(const char *Constraint, TargetInfo &Target, } llvm::Value* CodeGenFunction::EmitAsmInput(const AsmStmt &S, - TargetInfo::ConstraintInfo Info, + const TargetInfo::ConstraintInfo &Info, const Expr *InputExpr, std::string &ConstraintStr) { llvm::Value *Arg; diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h index 04c0026d8e6f..0729ae2d6950 100644 --- a/clang/lib/CodeGen/CodeGenFunction.h +++ b/clang/lib/CodeGen/CodeGenFunction.h @@ -801,7 +801,8 @@ private: void ExpandTypeToArgs(QualType Ty, RValue Src, llvm::SmallVector &Args); - llvm::Value* EmitAsmInput(const AsmStmt &S, TargetInfo::ConstraintInfo Info, + llvm::Value* EmitAsmInput(const AsmStmt &S, + const TargetInfo::ConstraintInfo &Info, const Expr *InputExpr, std::string &ConstraintStr); /// EmitCleanupBlock - emits a single cleanup block.