Skip to content

Commit 28a9ef5

Browse files
committed
Revert "Improve int literal printing for template args. To be upstreamed."
Revert: root-project/llvm-project@ef296c01b432
1 parent 02fd55a commit 28a9ef5

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

interpreter/llvm-project/clang/lib/AST/TemplateBase.cpp

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -133,14 +133,8 @@ static void printIntegral(const TemplateArgument &TemplArg, raw_ostream &Out,
133133
} else
134134
Out << "(" << T->getCanonicalTypeInternal().getAsString(Policy) << ")"
135135
<< Val;
136-
} else {
136+
} else
137137
Out << Val;
138-
// Handle cases where the value is too large to fit into the underlying type
139-
// i.e. where the unsignedness matters.
140-
if (T->isBuiltinType())
141-
if (Val.isUnsigned() && Val.getBitWidth() == 64 && Val.countLeadingOnes())
142-
Out << "ull";
143-
}
144138
}
145139

146140
static unsigned getArrayDepth(QualType type) {

0 commit comments

Comments
 (0)