mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-13 19:24:21 +00:00
Fix bug in va_copy
llvm-svn: 58680
This commit is contained in:
parent
a69d8c50dc
commit
4961890c07
@ -66,7 +66,7 @@ RValue CodeGenFunction::EmitBuiltinExpr(unsigned BuiltinID, const CallExpr *E) {
|
||||
}
|
||||
case Builtin::BI__builtin_va_copy: {
|
||||
// FIXME: This does not yet handle architectures where va_list is a struct.
|
||||
Value *DstPtr = EmitScalarExpr(E->getArg(0));
|
||||
Value *DstPtr = EmitLValue(E->getArg(0)).getAddress();
|
||||
Value *SrcValue = EmitScalarExpr(E->getArg(1));
|
||||
|
||||
Value *SrcPtr = CreateTempAlloca(SrcValue->getType(), "dst_ptr");
|
||||
|
Loading…
Reference in New Issue
Block a user