<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/121967>121967</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
error when using llvm
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
iurjscsi1101500
</td>
</tr>
</table>
<pre>
I was trying to build a plugin for llvm but I got this error which was not part of my project
error:`/usr/local/opt/llvm/include/llvm/Support/Registry.h:118:51: error: no viable conversion from returned value of type 'unique_ptr<CNoCurseWordsAction>' to function return type 'unique_ptr<clang::PluginASTAction>'
118 | static std::unique_ptr<T> CtorFn() { return std::make_unique<V>(); }
`
specifications:
`- clang -v
Homebrew clang version 19.1.6
Target: x86_64-apple-darwin24.3.0
Thread model: posix
InstalledDir: /usr/local/Cellar/llvm/19.1.6/bin
Configuration file: /usr/local/etc/clang/x86_64-apple-darwin24.cfg
System configuration file directory: /usr/local/etc/clang
User configuration file directory: /Users/computer/.config/clang`
currently installed llvm with brew install llvm
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJyMlMty6zYMhp8G3mDiIambvdBCcY6m2XQ6TdouM5QESTylSJUX5_jtO5Ttk14y03pnEv-HnwAE6b2aDFENxSMUTzsZw2xdraL76nuvOGe8YGzX2eFSP-O79BjcRZkJg8UuKj2gxFXHSRkcrUOtzwt2MeAzTjZgmJVHcs46fJ9VP28AYwOu0gW0Iy4XXJ39Sn0A1gBrtljIGigZiDZ6B6LVtpcaRGvXkP7p8wKiVabXcaCPg5e4rtaliJ9pUj64y36GrOH8AFlTcMgavMPRWDwr2WnC3pozOa-swdHZBR2F6AwNeJY6UnIYLishiCoa9UektzU4yE6nH-0pOk-_WTf4pg_KGsi-gKhSWcZotpMb7HNCr6WZ0kOz5qetfM3L619BwBpEzg8I1QmvPx9kUD36MFx1f-O9QvYFT8G61oA4gDgiVI93B98li_yd3q46yE6_bqlSMGSPCNVT6kHJgDV-pV6NqpfJkE8lu1494OYbH87Amh_sQp2j99vZvY78uOf7EljzKt1EIYm_Hcq3Mn-Q66rpYZDuXRmR77N9SvU6O5IDLnYgnWJX69U3YM2z8UFqTcOT2nr2r3E4kdbSfQzALa9oO2WANSdrRjVFtz0BR6XpUwqFHkR77YZoPzfajxOw5uXiAy1pYv7BxUE56oN1l__MwJpfPLn_w0hxPunsssZACbi_yr7Dtk4Ba_roHJmgL6juNbt-h-8qzLh16HaxHe-GOhuO2VHuqOZVVoqKHTjfzfVxGLrsWOXE8vzYFV3JCyrLsShI5lxU_U7VgomCcVbxSpQF33ciy7NOUn4Yq7GjI-SMFqn0PuXZWzftlPeRai74sax2Wnak_bZphDDJVroFIdLicXUSPXRx8pAzrXzwH5iggqb6vkjIYPRpB23PiU7XcwhrGlMQLYh2UmGO3b63y8d0bPD7qhHtljnV92btXIs_AwAA__-OkaQn">