Skip to content

Commit

Permalink
keep the the builder setup code close together
Browse files Browse the repository at this point in the history
  • Loading branch information
tgymnich committed Aug 15, 2024
1 parent a37044d commit 61bc2a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/Target/DirectX/DXILIntrinsicExpansion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -297,12 +297,12 @@ static bool expandClampIntrinsic(CallInst *Orig, Intrinsic::ID ClampIntrinsic) {

static bool expandSignIntrinsic(CallInst *Orig) {
IRBuilder<> Builder(Orig->getParent());
Builder.SetInsertPoint(Orig);
Value *X = Orig->getOperand(0);
Type *Ty = X->getType();
Type *ScalarTy = Ty->getScalarType();
Type *RetTy = Orig->getType();
Constant *Zero = Constant::getNullValue(Ty);
Builder.SetInsertPoint(Orig);

Value *GT;
Value *LT;
Expand Down

0 comments on commit 61bc2a8

Please sign in to comment.