We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db5fd45 commit e2eb5aeCopy full SHA for e2eb5ae
mlir/lib/Target/LLVMIR/ModuleTranslation.cpp
@@ -591,7 +591,7 @@ llvm::Constant *mlir::LLVM::detail::getLLVMConstant(
591
if (auto intAttr = dyn_cast<IntegerAttr>(attr)) {
592
// If the attribute is an unsigned integer or a 1-bit integer, zero-extend
593
// the value to the bit width of the LLVM type. Otherwise, sign-extend.
594
- auto intTy = mlir::dyn_cast<IntegerType>(intAttr.getType());
+ auto intTy = dyn_cast<IntegerType>(intAttr.getType());
595
APInt value;
596
if (intTy && (intTy.isUnsigned() || intTy.getWidth() == 1))
597
value = intAttr.getValue().zextOrTrunc(llvmType->getIntegerBitWidth());
0 commit comments