Skip to content

Commit e780f79

Browse files
committed
[ValueTracking] Fix clang build failure
1 parent 4af6856 commit e780f79

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clang/lib/CodeGen/CGCall.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4124,7 +4124,8 @@ static bool isProvablyNull(llvm::Value *addr) {
41244124
}
41254125

41264126
static bool isProvablyNonNull(Address Addr, CodeGenFunction &CGF) {
4127-
return llvm::isKnownNonZero(Addr.getBasePointer(), CGF.CGM.getDataLayout());
4127+
return llvm::isKnownNonZero(Addr.getBasePointer(), /*Depth=*/0,
4128+
CGF.CGM.getDataLayout());
41284129
}
41294130

41304131
/// Emit the actual writing-back of a writeback.

0 commit comments

Comments
 (0)