If the return type of a function is void, ReturnType is not set, but we used to emit a RVOPtr instruction, which doesn't make sense for a function returning void.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang/lib/AST/Interp/ByteCodeStmtGen.cpp | ||
---|---|---|
312 | You could also guard the cleanup and emitRet above w/ this check, so as to avoid code repetition. |
You could also guard the cleanup and emitRet above w/ this check, so as to avoid code repetition.