mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-12-06 06:51:30 +00:00
[NFC] More get/removeAttribute() cleanup
This commit is contained in:
1 parent
de0ae9e89e
commit
3f4d00bc3b
30 files changed
+131
-153
No files matched your search
@@ -5567,9 +5567,8 @@ Error BitcodeReader::materialize(GlobalValue *GV) {
|
||||
|
||||
// Remove incompatible attributes on function calls.
|
||||
if (auto *CI = dyn_cast<CallBase>(&I)) {
|
||||
CI->removeAttributes(AttributeList::ReturnIndex,
|
||||
AttributeFuncs::typeIncompatible(
|
||||
CI->getFunctionType()->getReturnType()));
|
||||
CI->removeRetAttrs(AttributeFuncs::typeIncompatible(
|
||||
CI->getFunctionType()->getReturnType()));
|
||||
|
||||
for (unsigned ArgNo = 0; ArgNo < CI->arg_size(); ++ArgNo)
|
||||
CI->removeParamAttrs(ArgNo, AttributeFuncs::typeIncompatible(
|
||||
|
||||
Reference in new issue
Block a user