Skip to content

Commit

Permalink
Fixed upstream pulldown build error
Browse files Browse the repository at this point in the history
Fixed build failure related to upstream changes
  • Loading branch information
fineg74 authored and sys-cmllvm committed Nov 29, 2023
1 parent dfc06b2 commit b16218b
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,11 @@ static void rewriteSingleElementVectorSignature(Function &F,
NewF.copyAttributesFrom(&F);
NewF.takeName(&F);
NewF.copyMetadata(&F, 0);
#if VC_INTR_LLVM_VERSION_MAJOR >= 18
NewF.updateAfterNameChange();
#else // VC_INTR_LLVM_VERSION_MAJOR >= 18
NewF.recalculateIntrinsicID();
#endif // VC_INTR_LLVM_VERSION_MAJOR >= 18
F.getParent()->getFunctionList().insert(F.getIterator(), &NewF);
#if VC_INTR_LLVM_VERSION_MAJOR > 15
NewF.splice(NewF.begin(), &F);
Expand Down

0 comments on commit b16218b

Please sign in to comment.