Skip to content

Commit 623215d

Browse files
committed
Minor tidying
1 parent 108265f commit 623215d

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

llvm/include/llvm/IR/NVVMIntrinsicUtils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
//
99
/// \file
1010
/// This file contains the definitions of the enumerations and flags
11-
/// associated with NVVM Intrinsics.
11+
/// associated with NVVM Intrinsics, along with some helper functions.
1212
//
1313
//===----------------------------------------------------------------------===//
1414

llvm/lib/Analysis/ConstantFolding.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,7 @@ Constant *FoldBitCast(Constant *C, Type *DestTy, const DataLayout &DL) {
291291

292292
return ConstantVector::get(Result);
293293
}
294+
294295
} // end anonymous namespace
295296

296297
/// If this constant is a constant offset from a global, return the global and
@@ -2431,8 +2432,6 @@ static Constant *ConstantFoldScalarCall1(StringRef Name,
24312432
return ConstantInt::get(Ty, 0);
24322433

24332434
APFloat::roundingMode RMode = nvvm::IntrinsicGetRoundingMode(IntrinsicID);
2434-
assert(RM != APFloat::roundingMode::Invalid);
2435-
24362435
bool IsFTZ = nvvm::IntrinsicShouldFTZ(IntrinsicID);
24372436
bool IsSigned = nvvm::IntrinsicConvertsToSignedInteger(IntrinsicID);
24382437

0 commit comments

Comments
 (0)