summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-08-05 16:46:43 +0000
committerDan Gohman <gohman@apple.com>2009-08-05 16:46:43 +0000
commit477fd55c9ac7c0cb02b0d0e502f7fa0367b735f4 (patch)
tree111b6046c4a90849e2913296e4e2bb98f3dee742 /llvm/lib
parent21788bef7c2647f178163681f6e684ba5507f60b (diff)
downloadbcm5719-llvm-477fd55c9ac7c0cb02b0d0e502f7fa0367b735f4.tar.gz
bcm5719-llvm-477fd55c9ac7c0cb02b0d0e502f7fa0367b735f4.zip
Fix a bug in the PIC16 backend.
llvm-svn: 78211
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/PIC16/PIC16ISelLowering.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/PIC16/PIC16ISelLowering.cpp b/llvm/lib/Target/PIC16/PIC16ISelLowering.cpp
index 915669b7278..ec9a52fba07 100644
--- a/llvm/lib/Target/PIC16/PIC16ISelLowering.cpp
+++ b/llvm/lib/Target/PIC16/PIC16ISelLowering.cpp
@@ -403,7 +403,7 @@ PIC16TargetLowering::MakePIC16Libcall(PIC16ISD::PIC16Libcall Call,
Entry.isZExt = !isSigned;
Args.push_back(Entry);
}
- SDValue Callee = DAG.getExternalSymbol(getPIC16LibcallName(Call), MVT::i8);
+ SDValue Callee = DAG.getExternalSymbol(getPIC16LibcallName(Call), MVT::i16);
const Type *RetTy = RetVT.getTypeForMVT();
std::pair<SDValue,SDValue> CallInfo =
OpenPOWER on IntegriCloud