[llvm] [llubi] Fix ptrtoint's return type (PR #212839)

Antonio Frighetto via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 29 11:52:07 PDT 2026


================
@@ -2674,11 +2674,12 @@ class InstExecutor : public InstVisitor<InstExecutor, void>,
   }
 
   void visitPtrToInt(PtrToIntInst &I) {
+    unsigned BitWidth = I.getType()->getScalarSizeInBits();
     return visitUnOp(I, [&](const AnyValue &V) -> AnyValue {
----------------
antoniofrighetto wrote:

(Sorry, missed we were using `Ctx` in the lambda.)

https://github.com/llvm/llvm-project/pull/212839


More information about the llvm-commits mailing list