From 12f23a86e22d66a2ec67ff7f4423688a1282e684 Mon Sep 17 00:00:00 2001 From: Sanjiv Gupta Date: Mon, 13 Apr 2009 09:38:38 +0000 Subject: [PATCH] While passing arg of types larger than char only one byte at lower end was getting passed. We couldn't catch this as we did not have tests that were passing an int value larger than 256. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68946 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/PIC16/PIC16ISelLowering.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Target/PIC16/PIC16ISelLowering.cpp b/lib/Target/PIC16/PIC16ISelLowering.cpp index e0603bbbef2..e1544a00f03 100644 --- a/lib/Target/PIC16/PIC16ISelLowering.cpp +++ b/lib/Target/PIC16/PIC16ISelLowering.cpp @@ -939,7 +939,7 @@ LowerDirectCallArguments(SDValue Op, SDValue Chain, SDValue FrameAddress, Ops.clear(); Ops.push_back(Chain); - Ops.push_back(Arg.getValue(0)); + Ops.push_back(Arg); Ops.push_back(PtrLo); Ops.push_back(PtrHi); Ops.push_back(DAG.getConstant(StoreOffset, MVT::i8));