This is an archive of the discontinued LLVM Phabricator instance.

Ensure AtomicExpr goes through SEMA checking after TreeTransform
ClosedPublic

Authored by erichkeane on Sep 20 2019, 11:31 AM.

Details

Summary

RebuildAtomicExpr was skipping doing semantic analysis which broke in
the cases where the expressions were not dependent. This resulted in the
ImplicitCastExpr from an array to a pointer being lost, causing a crash
in IR CodeGen.

Diff Detail

Repository
rL LLVM

Event Timeline

erichkeane created this revision.Sep 20 2019, 11:31 AM
rsmith accepted this revision.Sep 20 2019, 12:09 PM
This revision is now accepted and ready to land.Sep 20 2019, 12:09 PM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptSep 20 2019, 12:15 PM

@erichkeane The atomic-expr.cpp test is failing on some MSVC buildbots, please can you take a look? http://lab.llvm.org:8011/builders/llvm-clang-lld-x86_64-scei-ps4-windows10pro-fast/

@erichkeane The atomic-expr.cpp test is failing on some MSVC buildbots, please can you take a look? http://lab.llvm.org:8011/builders/llvm-clang-lld-x86_64-scei-ps4-windows10pro-fast/

On it. Buildbot never emailed me I guess *shrug*.

@erichkeane The atomic-expr.cpp test is failing on some MSVC buildbots, please can you take a look? http://lab.llvm.org:8011/builders/llvm-clang-lld-x86_64-scei-ps4-windows10pro-fast/

On it. Buildbot never emailed me I guess *shrug*.

Ah... well, that was foolish. I matched the patch in the FunctionTemplateDecl with {{[^:]+}}. Obviously, Windows has a ':' in the path! I'm confirming a pat to relax this test.