Skip to content

Commit d5016bc

Browse files
committed
fix an error
1 parent 4ad1f1e commit d5016bc

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9122,8 +9122,7 @@ std::pair<SDValue, SDValue> SelectionDAG::getStrlen(SDValue Chain,
91229122
CLI.setDebugLoc(dl)
91239123
.setChain(Chain)
91249124
.setLibCallee(
9125-
TLI->getLibcallCallingConv(RTLIB::STRLEN),
9126-
Type::getInt32Ty(*getContext()),
9125+
TLI->getLibcallCallingConv(RTLIB::STRLEN), CI->getType(),
91279126
getExternalSymbol(LibCallName, TLI->getPointerTy(getDataLayout())),
91289127
std::move(Args))
91299128
.setTailCall(IsTailCall);

llvm/test/CodeGen/PowerPC/milicode64.ll

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ define i64 @strlen_test(ptr noundef %str) nounwind {
8787
; CHECK-AIX-64-P9-NEXT: std r3, 120(r1)
8888
; CHECK-AIX-64-P9-NEXT: bl .___strlen64[PR]
8989
; CHECK-AIX-64-P9-NEXT: nop
90-
; CHECK-AIX-64-P9-NEXT: clrldi r3, r3, 32
9190
; CHECK-AIX-64-P9-NEXT: addi r1, r1, 128
9291
; CHECK-AIX-64-P9-NEXT: ld r0, 16(r1)
9392
; CHECK-AIX-64-P9-NEXT: mtlr r0

0 commit comments

Comments
 (0)