[all-commits] [llvm/llvm-project] b6e1fb: [IR] Make TypeFinder aware of DIArgList values
David via All-commits
all-commits at lists.llvm.org
Fri May 28 08:20:26 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: b6e1fb7e32535cd299656372bd40a2597899b022
https://github.com/llvm/llvm-project/commit/b6e1fb7e32535cd299656372bd40a2597899b022
Author: David Stenberg <david.stenberg at ericsson.com>
Date: 2021-05-28 (Fri, 28 May 2021)
Changed paths:
M llvm/lib/IR/TypeFinder.cpp
A llvm/test/Transforms/GlobalOpt/deadglobal-diarglist-use.ll
Log Message:
-----------
[IR] Make TypeFinder aware of DIArgList values
TypeFinder did not find types under DIArgList. This resulted in a case
of invalid IR after GlobalOpt removed a global that was the only
non-DIArgList use of a struct type.
error: use of undefined type named 'struct.S'
call void @llvm.dbg.value(
metadata !DIArgList([1 x %struct.S]* undef, i64 %idxprom),
metadata !24, metadata !DIExpression([...]))
Reviewed By: jmorse
Differential Revision: https://reviews.llvm.org/D103306
More information about the All-commits
mailing list