[clang] [clang][Interp] Support arbitrary precision constants (PR #79747)
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Tue Jan 30 08:56:08 PST 2024
================
@@ -2215,6 +2213,11 @@ bool ByteCodeExprGen<Emitter>::emitConst(T Value, const Expr *E) {
template <class Emitter>
bool ByteCodeExprGen<Emitter>::emitConst(const APSInt &Value, PrimType Ty,
const Expr *E) {
+ if (Ty == PT_IntAPS)
+ return this->emitConstIntAPS(Value, E);
+ else if (Ty == PT_IntAP)
----------------
AaronBallman wrote:
```suggestion
if (Ty == PT_IntAPS)
return this->emitConstIntAPS(Value, E);
if (Ty == PT_IntAP)
```
No `else` after a `return` per coding standard.
https://github.com/llvm/llvm-project/pull/79747
More information about the cfe-commits
mailing list