[all-commits] [llvm/llvm-project] 206a60: [Presburger] Cheat around old versions of clang no...
Benjamin Kramer via All-commits
all-commits at lists.llvm.org
Wed Jun 29 03:41:29 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 206a6037a093a73d928a60c3012593f921a4f639
https://github.com/llvm/llvm-project/commit/206a6037a093a73d928a60c3012593f921a4f639
Author: Benjamin Kramer <benny.kra at googlemail.com>
Date: 2022-06-29 (Wed, 29 Jun 2022)
Changed paths:
M mlir/lib/Analysis/Presburger/IntegerRelation.cpp
Log Message:
-----------
[Presburger] Cheat around old versions of clang not doing NRVO when there's a derived-to-base cast in the way
Should be NFC. We can just do the base conversion manually and avoid
warnings about it. Clang before Clang 13 didn't implement P1825 and
complains:
mlir/lib/Analysis/Presburger/IntegerRelation.cpp:226:10: warning: local variable 'result' will be copied
despite being returned by name [-Wreturn-std-move]
return result;
^~~~~~
mlir/lib/Analysis/Presburger/IntegerRelation.cpp:226:10: note: call 'std::move' explicitly to avoid copying
return result;
^~~~~~
std::move(result)
More information about the All-commits
mailing list