Skip to content

Commit 2e5f7d5

Browse files
committed
Address review feedback
1 parent 49c4d1c commit 2e5f7d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/lib/Target/LLVMIR/ModuleTranslation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,7 @@ llvm::Constant *mlir::LLVM::detail::getLLVMConstant(
591591
if (auto intAttr = dyn_cast<IntegerAttr>(attr)) {
592592
// If the attribute is an unsigned integer or a 1-bit integer, zero-extend
593593
// the value to the bit width of the LLVM type. Otherwise, sign-extend.
594-
auto intTy = mlir::dyn_cast<IntegerType>(intAttr.getType());
594+
auto intTy = dyn_cast<IntegerType>(intAttr.getType());
595595
APInt value;
596596
if (intTy && (intTy.isUnsigned() || intTy.getWidth() == 1))
597597
value = intAttr.getValue().zextOrTrunc(llvmType->getIntegerBitWidth());

0 commit comments

Comments
 (0)