diff options
author | Tyker <tyker1@outlook.com> | 2020-06-19 12:01:59 +0200 |
---|---|---|
committer | Tyker <tyker1@outlook.com> | 2020-06-19 12:02:09 +0200 |
commit | 67448a8ccc4df606aa635db5cd2671a696cb1321 (patch) | |
tree | 462d65b8a64d31428e695820f18511324c76a848 /llvm/lib/IR/Value.cpp | |
parent | cad2038700b204ba437b269dcba5b995f0c385ab (diff) | |
download | llvm-67448a8ccc4df606aa635db5cd2671a696cb1321.zip llvm-67448a8ccc4df606aa635db5cd2671a696cb1321.tar.gz llvm-67448a8ccc4df606aa635db5cd2671a696cb1321.tar.bz2 |
try to fix build bot after b7338fb1a6a464472850211165391983d2c8fdf3
Diffstat (limited to 'llvm/lib/IR/Value.cpp')
-rw-r--r-- | llvm/lib/IR/Value.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/IR/Value.cpp b/llvm/lib/IR/Value.cpp index 78c12f4..0fd147c 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; |