Skip to content

Commit 4ea28ff

Browse files
svenvhsys-ce-bb
authored andcommitted
Remove unused IsRetSigned field (#2567)
Original commit: KhronosGroup/SPIRV-LLVM-Translator@4add3896f5889e5
1 parent a050277 commit 4ea28ff

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

llvm-spirv/lib/SPIRV/OCLToSPIRV.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -943,7 +943,7 @@ void OCLToSPIRVBase::transBuiltin(CallInst *CI, OCLBuiltinTransInfo &Info) {
943943
Mutator.changeReturnType(
944944
Info.RetTy, [OldRetTy, &Info](IRBuilder<> &Builder, CallInst *NewCI) {
945945
if (Info.RetTy->isIntegerTy() && OldRetTy->isIntegerTy()) {
946-
return Builder.CreateIntCast(NewCI, OldRetTy, Info.IsRetSigned);
946+
return Builder.CreateIntCast(NewCI, OldRetTy, false);
947947
}
948948
return Builder.CreatePointerBitCastOrAddrSpaceCast(NewCI, OldRetTy);
949949
});

llvm-spirv/lib/SPIRV/OCLUtil.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,9 +162,7 @@ struct OCLBuiltinTransInfo {
162162
/// Postprocessor of operands
163163
std::function<void(BuiltinCallMutator &)> PostProc;
164164
Type *RetTy; // Return type of the translated function
165-
bool IsRetSigned; // When RetTy is int, determines if extensions
166-
// on it should be a sext or zet.
167-
OCLBuiltinTransInfo() : RetTy(nullptr), IsRetSigned(false) {
165+
OCLBuiltinTransInfo() : RetTy(nullptr) {
168166
PostProc = [](BuiltinCallMutator &) {};
169167
}
170168
};

0 commit comments

Comments
 (0)