[llvm] [Verifier][CGP] Allow integer argument to dbg_declare (PR #134803)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 8 01:20:53 PDT 2025
================
@@ -1556,6 +1556,9 @@ static bool processDbgDeclare(FunctionLoweringInfo &FuncInfo,
if (processIfEntryValueDbgDeclare(FuncInfo, Address, Expr, Var, DbgLoc))
return true;
+ if (!Address->getType()->isPointerTy())
+ return false;
----------------
nikic wrote:
Restored some tests I originally adjusted.
I just looked at IRTranslator, and it doesn't seem to have the offset stripping code that caused this to assert.
https://github.com/llvm/llvm-project/pull/134803
More information about the llvm-commits
mailing list