Ensure that we are in a function declaration context before checking
the diagnostic emission status, to avoid dereferencing a NULL function
declaration.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang/lib/Sema/SemaOpenMP.cpp | ||
---|---|---|
1946 |
Are you suggesting that I change the spaces to tabs instead? |
clang/lib/Sema/SemaOpenMP.cpp | ||
---|---|---|
1946 | The reverse. Change the tabs you have at the beginning of the line to spaces. I believe that is what the double-arrow character in Phab represents (a tab). |
clang/lib/Sema/SemaOpenMP.cpp | ||
---|---|---|
1946 | Oh! I misunderstood then. I thought phab was indicating that there are no changes in the line, except new indentation. I didn't use tabs in my source file. I don't see it in the character set. Perhaps something introduced it during the upload. I will check. |
clang/lib/Sema/SemaOpenMP.cpp | ||
---|---|---|
1946 | Oh, it looks like you're right, that must be a new feature of Phab that looks shockingly like an old one :) I don't see tabs in the downloaded diff file, so consider that comment 'done'. |
Tabs here instead of spaces.
I think this is the right fix for SYCL, but @bader should double-check that he's ok with this or OMP.