Skip to content

Commit ecb06cb

Browse files
authored
Forward args only once!
1 parent fb5b3ad commit ecb06cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/include/clang/StaticAnalyzer/Core/PathSensitive/SymbolManager.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -681,7 +681,7 @@ class SymbolVisitor {
681681
template <typename T, typename... Args>
682682
const T *SymbolManager::acquire(Args &&...args) {
683683
llvm::FoldingSetNodeID profile;
684-
T::Profile(profile, std::forward<Args>(args)...);
684+
T::Profile(profile, args...);
685685
void *InsertPos;
686686
SymExpr *SD = DataSet.FindNodeOrInsertPos(profile, InsertPos);
687687
if (!SD) {

0 commit comments

Comments
 (0)