Skip to content

Commit fa19077

Browse files
committed
Delete unused code snippet
1 parent 68182e6 commit fa19077

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

llvm/lib/Target/DirectX/DXILOpBuilder.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -342,16 +342,6 @@ CallInst *DXILOpBuilder::createDXILOpCall(dxil::OpCode OpCode, Type *ReturnTy,
342342

343343
Type *DXILOpBuilder::getOverloadType(dxil::OpCode OpCode, FunctionType *FT) {
344344

345-
std::string TTStr = M.getTargetTriple();
346-
// No extra checks need be performed to verify that the Triple is
347-
// well-formed or the target is supported since these checks would have
348-
// been done at the time the module M is constructed in the earlier stages of
349-
// compilation.
350-
auto Major = Triple(TTStr).getOSVersion().getMajor();
351-
auto MinorOrErr = Triple(TTStr).getOSVersion().getMinor();
352-
uint32_t Minor = MinorOrErr.has_value() ? *MinorOrErr : 0;
353-
VersionTuple SMVer(Major, Minor);
354-
355345
const OpCodeProperty *Prop = getOpCodeProperty(OpCode);
356346
// If DXIL Op has no overload parameter, just return the
357347
// precise return type specified.

0 commit comments

Comments
 (0)