aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2022-01-09 00:19:47 -0800
committerKazu Hirata <kazu@google.com>2022-01-09 00:19:47 -0800
commit40446663c73831f166c4432edb2997d88fd167a9 (patch)
treeaab09c69baaed6d7db2d82ae84f4708f44b1dc15 /clang/lib/CodeGen/CodeGenFunction.cpp
parent4cd768ed5e735da5f97be22c6da9483a39e20f3d (diff)
downloadllvm-40446663c73831f166c4432edb2997d88fd167a9.zip
llvm-40446663c73831f166c4432edb2997d88fd167a9.tar.gz
llvm-40446663c73831f166c4432edb2997d88fd167a9.tar.bz2
[clang] Use true/false instead of 1/0 (NFC)
Identified with modernize-use-bool-literals.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenFunction.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.cpp b/clang/lib/CodeGen/CodeGenFunction.cpp
index 4814962..2d3b214 100644
--- a/clang/lib/CodeGen/CodeGenFunction.cpp
+++ b/clang/lib/CodeGen/CodeGenFunction.cpp
@@ -740,7 +740,7 @@ void CodeGenFunction::StartFunction(GlobalDecl GD, QualType RetTy,
#include "clang/Basic/Sanitizers.def"
#undef SANITIZER
- } while (0);
+ } while (false);
if (D) {
bool NoSanitizeCoverage = false;
@@ -2694,7 +2694,7 @@ void CodeGenFunction::emitAlignmentAssumptionCheck(
SanitizerScope SanScope(this);
if (!OffsetValue)
- OffsetValue = Builder.getInt1(0); // no offset.
+ OffsetValue = Builder.getInt1(false); // no offset.
llvm::Constant *StaticData[] = {EmitCheckSourceLocation(Loc),
EmitCheckSourceLocation(SecondaryLoc),