From: Stanislav Mekhanoshin Date: Fri, 11 Aug 2017 17:54:43 +0000 (+0000) Subject: [AMDGPU] Fix santizer error after last commit X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=911c1e458f0f5070ee1d0e7c915e89de18ef4ac2;p=llvm [AMDGPU] Fix santizer error after last commit Removed useless assert. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@310738 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/AMDGPU/AMDGPULibCalls.cpp b/lib/Target/AMDGPU/AMDGPULibCalls.cpp index 9a83e3866c0..57cb2a6a921 100644 --- a/lib/Target/AMDGPU/AMDGPULibCalls.cpp +++ b/lib/Target/AMDGPU/AMDGPULibCalls.cpp @@ -1303,7 +1303,6 @@ BasicBlock::iterator AMDGPULibCalls::getEntryIns(CallInst * UI) { BasicBlock * BB = &Func->getEntryBlock(); assert(BB && "Entry block not found!"); BasicBlock::iterator ItNew = BB->begin(); - assert(&*ItNew && "Entry instruction not found!"); return ItNew; }