[all-commits] [llvm/llvm-project] a43c19: [llvm-jitlink] Use SmallVectorImpl when referencin...
Nikita Popov via All-commits
all-commits at lists.llvm.org
Mon Jan 22 01:37:35 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: a43c192567eb4ea2535d73b83da5c7d5ed2b6122
https://github.com/llvm/llvm-project/commit/a43c192567eb4ea2535d73b83da5c7d5ed2b6122
Author: Nikita Popov <npopov at redhat.com>
Date: 2024-01-22 (Mon, 22 Jan 2024)
Changed paths:
M llvm/tools/llvm-jitlink/llvm-jitlink.cpp
Log Message:
-----------
[llvm-jitlink] Use SmallVectorImpl when referencing StubInfos (NFC)
The element type is declared as SmallVector<T, 1>, but we assign to
SmallVector<T> &. These types are not the same on 32-bit systems,
resulting in a compilation error.
Fix this by using SmallVectorImpl<T> & instead, which is independent
of the small size.
More information about the All-commits
mailing list