Skip to content

Commit 7e60e8f

Browse files
committed
fixup! Merge branch 'main' into add_range_metadata
1 parent 91142fa commit 7e60e8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/CodeGen/CGExpr.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2147,7 +2147,7 @@ llvm::Value *CodeGenFunction::EmitFromMemory(llvm::Value *Value, QualType Ty) {
21472147

21482148
llvm::Type *ResTy = ConvertType(Ty);
21492149
bool IsSafe = isSafeNUWTrunc(Value, ResTy);
2150-
if (hasBooleanRepresentation(Ty) || Ty->isBitIntType() ||
2150+
if (Ty->hasBooleanRepresentation() || Ty->isBitIntType() ||
21512151
Ty->isExtVectorBoolType()) {
21522152
return Builder.CreateTrunc(Value, ResTy, "loadedv", /*IsNUW*/ IsSafe);
21532153
}

0 commit comments

Comments
 (0)