File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed
clang/include/clang/StaticAnalyzer/Core/PathSensitive Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -584,10 +584,6 @@ class SMTConv {
584
584
return Ty;
585
585
}
586
586
587
- // static inline bool IsPower2(unsigned bits) {
588
- // return bits > 0 && (bits & (bits - 1)) == 0;
589
- // }
590
-
591
587
// Get the QualTy for the input APSInt, and fix it if it has a bitwidth of 1.
592
588
static inline std::pair<llvm::APSInt, QualType>
593
589
fixAPSInt (ASTContext &Ctx, const llvm::APSInt &Int) {
@@ -601,8 +597,7 @@ class SMTConv {
601
597
if (APSIntBitwidth == 1 && Ty.isNull ()) {
602
598
NewInt = Int.extend (Ctx.getTypeSize (Ctx.BoolTy ));
603
599
Ty = getAPSIntType (Ctx, NewInt);
604
- } else if (!llvm::isPowerOf2_32 (APSIntBitwidth) &&
605
- !getAPSIntType (Ctx, Int).isNull ()) {
600
+ } else if (!llvm::isPowerOf2_32 (APSIntBitwidth) && !Ty.isNull ()) {
606
601
NewInt = Int.extend (Ctx.getTypeSize (Ty));
607
602
} else
608
603
NewInt = Int;
You can’t perform that action at this time.
0 commit comments