[llvm] 67448a8 - try to fix build bot after b7338fb1a6a464472850211165391983d2c8fdf3
via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 19 03:01:59 PDT 2020
Author: Tyker
Date: 2020-06-19T12:02:09+02:00
New Revision: 67448a8ccc4df606aa635db5cd2671a696cb1321
URL: https://github.com/llvm/llvm-project/commit/67448a8ccc4df606aa635db5cd2671a696cb1321
DIFF: https://github.com/llvm/llvm-project/commit/67448a8ccc4df606aa635db5cd2671a696cb1321.diff
LOG: try to fix build bot after b7338fb1a6a464472850211165391983d2c8fdf3
Added:
Modified:
llvm/lib/IR/Value.cpp
Removed:
################################################################################
diff --git a/llvm/lib/IR/Value.cpp b/llvm/lib/IR/Value.cpp
index 78c12f469a27..0fd147c3a44d 100644
--- a/llvm/lib/IR/Value.cpp
+++ b/llvm/lib/IR/Value.cpp
@@ -515,10 +515,12 @@ enum PointerStripKind {
PSK_InBounds
};
+template <PointerStripKind StripKind> static void NoopCallback(const Value *) {}
+
template <PointerStripKind StripKind>
static const Value *stripPointerCastsAndOffsets(
const Value *V,
- function_ref<void(const Value *)> Func = [](const Value *) {}) {
+ function_ref<void(const Value *)> Func = NoopCallback<StripKind>) {
if (!V->getType()->isPointerTy())
return V;
More information about the llvm-commits
mailing list