Skip to content

Commit c71cb70

Browse files
committed
Revert "fix generic addr space ocl test"
This reverts commit 56b6bb6. This was a workaround and removes upstream diff. llvm#138863 is the upstream reimplementation, this drops the remaining diff.
1 parent a2974c5 commit c71cb70

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

clang/lib/CodeGen/CGExpr.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,6 @@ RawAddress CodeGenFunction::CreateTempAlloca(llvm::Type *Ty, LangAS DestLangAS,
108108
if (AllocaAddr)
109109
*AllocaAddr = Alloca;
110110
llvm::Value *V = Alloca.getPointer();
111-
assert((!getLangOpts().OpenCL ||
112-
CGM.getTarget().getTargetAddressSpace(getASTAllocaAddressSpace()) ==
113-
CGM.getTarget().getTargetAddressSpace(LangAS::opencl_private)) &&
114-
"For OpenCL allocas must allocate in the private address space!");
115111
// Alloca always returns a pointer in alloca address space, which may
116112
// be different from the type defined by the language. For example,
117113
// in C++ the auto variables are in the default address space. Therefore

0 commit comments

Comments
 (0)