mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-06 10:44:41 +01:00
try to fix build bot after b7338fb1a6
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user