Hlfir.designate was made to support substrings but so far substrings
were not yet lowered to it. Implement support for them.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Other than the one nit, all builds and tests correctly and looks good.
| flang/lib/Lower/ConvertExprToHLFIR.cpp | ||
|---|---|---|
| 178–181 | Braces aren't needed for the "then" part of this "if". | |
| flang/lib/Lower/ConvertExprToHLFIR.cpp | ||
|---|---|---|
| 178–181 | Pete, it is actually required by LLVM coding style (https://llvm.org/docs/CodingStandards.html#don-t-use-braces-on-simple-single-statement-bodies-of-if-else-loop-statements): // Use braces for the `if` block to keep it uniform with the `else` block.
if (isa<FunctionDecl>(D)) {
handleFunctionDecl(D);
} else {
// In this `else` case, it is necessary that we explain the situation with
// this surprisingly long comment, so it would be unclear without the braces
// whether the following statement is in the scope of the `if`.
handleOtherDecl(D);
} | |
| flang/lib/Lower/ConvertExprToHLFIR.cpp | ||
|---|---|---|
| 178–181 | Thanks for letting me know! | |
Braces aren't needed for the "then" part of this "if".