Skip to content

Commit 0b19dcf

Browse files
committed
Add [[nodiscard]] to lowerIsFPClass
1 parent 4a4284d commit 0b19dcf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/lib/Target/DirectX/DXILOpLowering.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -739,7 +739,7 @@ class OpLowerer {
739739
});
740740
}
741741

742-
bool lowerIsFPClass(Function &F) {
742+
[[nodiscard]] bool lowerIsFPClass(Function &F) {
743743
IRBuilder<> &IRB = OpBuilder.getIRB();
744744
Type *RetTy = IRB.getInt1Ty();
745745

@@ -769,8 +769,8 @@ class OpLowerer {
769769
llvm_unreachable("Unsupported FPClassTest for DXILOpLowering");
770770
}
771771

772-
Expected<CallInst *> OpCall =
773-
OpBuilder.tryCreateOp(OpCode, Args, CI->getName(), RetTy);
772+
Expected<CallInst *> OpCall = OpBuilder.tryCreateOp(
773+
OpCode, Args, CI->getName(), RetTy);
774774
if (Error E = OpCall.takeError())
775775
return E;
776776

0 commit comments

Comments
 (0)