diff --git a/llvm/lib/Target/VE/VEISelLowering.cpp b/llvm/lib/Target/VE/VEISelLowering.cpp --- a/llvm/lib/Target/VE/VEISelLowering.cpp +++ b/llvm/lib/Target/VE/VEISelLowering.cpp @@ -2513,7 +2513,7 @@ default: // If the use is an instruction which treats the source operand as i32, // it is safe to avoid truncate here. - if (isI32Insn(*UI, N)) + if (isI32Insn(U, N)) continue; break; case ISD::ANY_EXTEND: