diff options
author | John McCall <rjmccall@apple.com> | 2011-06-25 02:11:03 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2011-06-25 02:11:03 +0000 |
commit | 55e1fbc848c0d2f3660251a9b6ef19beff512ac8 (patch) | |
tree | 02dc96d6f2b1cfb27dc2fe4c014560a319807cec /clang/lib/CodeGen/CGStmt.cpp | |
parent | 8ca6622e9aff0e8c4296f0bb5187e659725dfa52 (diff) | |
download | bcm5719-llvm-55e1fbc848c0d2f3660251a9b6ef19beff512ac8.tar.gz bcm5719-llvm-55e1fbc848c0d2f3660251a9b6ef19beff512ac8.zip |
LValue carries a type now, so simplify the main EmitLoad/Store APIs
by removing the redundant type parameter.
llvm-svn: 133860
Diffstat (limited to 'clang/lib/CodeGen/CGStmt.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGStmt.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CGStmt.cpp b/clang/lib/CodeGen/CGStmt.cpp index e0541911587..f5bd56efb25 100644 --- a/clang/lib/CodeGen/CGStmt.cpp +++ b/clang/lib/CodeGen/CGStmt.cpp @@ -1299,7 +1299,7 @@ CodeGenFunction::EmitAsmInputLValue(const AsmStmt &S, llvm::Value *Arg; if (Info.allowsRegister() || !Info.allowsMemory()) { if (!CodeGenFunction::hasAggregateLLVMType(InputType)) { - Arg = EmitLoadOfLValue(InputValue, InputType).getScalarVal(); + Arg = EmitLoadOfLValue(InputValue).getScalarVal(); } else { const llvm::Type *Ty = ConvertType(InputType); uint64_t Size = CGM.getTargetData().getTypeSizeInBits(Ty); @@ -1637,7 +1637,6 @@ void CodeGenFunction::EmitAsmStmt(const AsmStmt &S) { } } - EmitStoreThroughLValue(RValue::get(Tmp), ResultRegDests[i], - ResultRegQualTys[i]); + EmitStoreThroughLValue(RValue::get(Tmp), ResultRegDests[i]); } } |