diff options
| author | Jonas Devlieghere <jonas@devlieghere.com> | 2022-07-14 21:13:57 -0700 |
|---|---|---|
| committer | Jonas Devlieghere <jonas@devlieghere.com> | 2022-07-14 21:17:48 -0700 |
| commit | 888673b6e3bf0182fb5f154eb3231c9ae022acca (patch) | |
| tree | 5920eb6c26de7d1f48fd76a4d33c0dd36c163f3f /clang/lib/CodeGen/CodeGenModule.cpp | |
| parent | ef0081d608298db65371f9869c1371fcfc74a778 (diff) | |
Revert "[clang] Implement ElaboratedType sugaring for types written bare"
This reverts commit 7c51f02effdbd0d5e12bfd26f9c3b2ab5687c93f because it
stills breaks the LLDB tests. This was re-landed without addressing the
issue or even agreement on how to address the issue. More details and
discussion in https://reviews.llvm.org/D112374.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
| -rw-r--r-- | clang/lib/CodeGen/CodeGenModule.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index 725536dacac9..1e90b0914538 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -1751,7 +1751,7 @@ void CodeGenModule::GenKernelArgMetadata(llvm::Function *Fn, // Get image and pipe access qualifier: if (ty->isImageType() || ty->isPipeType()) { const Decl *PDecl = parm; - if (const auto *TD = ty->getAs<TypedefType>()) + if (auto *TD = dyn_cast<TypedefType>(ty)) PDecl = TD->getDecl(); const OpenCLAccessAttr *A = PDecl->getAttr<OpenCLAccessAttr>(); if (A && A->isWriteOnly()) |
