[llvm] [IR] Add initial support for the byte type (PR #178666)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 10 08:51:24 PST 2026
================
@@ -4211,15 +4094,16 @@ bool LLParser::parseValID(ValID &ID, PerFunctionState *PFS, Type *ExpectedTy) {
ID.Kind = ValID::t_Constant;
return false;
}
- case lltok::kw_c: // c "foo"
+ case lltok::kw_c: { // c "foo"
Lex.Lex();
- ID.ConstantVal = ConstantDataArray::getString(Context, Lex.getStrVal(),
- false);
+ ArrayType *ATy = static_cast<ArrayType *>(ExpectedTy);
----------------
nikic wrote:
```suggestion
ArrayType *ATy = cast<ArrayType *>(ExpectedTy);
```
https://github.com/llvm/llvm-project/pull/178666
More information about the llvm-commits
mailing list