[PATCH] D139166: [OPENMP51] Codegen support for error directive.
Jennifer Yu via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 8 10:47:32 PST 2022
jyu2 added inline comments.
================
Comment at: clang/lib/CodeGen/CGOpenMPRuntime.h:334
llvm::Value *emitUpdateLocation(CodeGenFunction &CGF, SourceLocation Loc,
- unsigned Flags = 0);
+ unsigned Flags = 0, bool EmitLoc = false);
----------------
ABataev wrote:
> Why do you need this location? To output it for the user in the runtime library call?
Thanks Alexey!
Yes. When run time emit error, the location will be presented like:
OMP: Warning #283: test_error_directive.cpp:6:1: Encountered user-directed warning: 2 or more procs required..
...
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D139166/new/
https://reviews.llvm.org/D139166
More information about the llvm-commits
mailing list