Skip to content

Commit 1b706a6

Browse files
el-evandykaylor
andauthored
Apply suggestion from @andykaylor
Co-authored-by: Andy Kaylor <[email protected]>
1 parent 11d4483 commit 1b706a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/CodeGen/CGStmt.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3012,7 +3012,7 @@ void CodeGenFunction::EmitAsmStmt(const AsmStmt &S) {
30123012

30133013
// Simplify the input constraint.
30143014
std::string InputConstraint(S.getInputConstraint(i));
3015-
InputConstraint = getTarget().simplifyConstraint(InputConstraint.c_str(),
3015+
InputConstraint = getTarget().simplifyConstraint(InputConstraint,
30163016
&OutputConstraintInfos);
30173017

30183018
InputConstraint = AddVariableConstraints(

0 commit comments

Comments
 (0)