[polly] r277698 - BlockGenerator: Assert that we do not get alloca of array access
Tobias Grosser via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 3 23:55:53 PDT 2016
Author: grosser
Date: Thu Aug 4 01:55:53 2016
New Revision: 277698
URL: http://llvm.org/viewvc/llvm-project?rev=277698&view=rev
Log:
BlockGenerator: Assert that we do not get alloca of array access
Modified:
polly/trunk/lib/CodeGen/BlockGenerators.cpp
Modified: polly/trunk/lib/CodeGen/BlockGenerators.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/CodeGen/BlockGenerators.cpp?rev=277698&r1=277697&r2=277698&view=diff
==============================================================================
--- polly/trunk/lib/CodeGen/BlockGenerators.cpp (original)
+++ polly/trunk/lib/CodeGen/BlockGenerators.cpp Thu Aug 4 01:55:53 2016
@@ -363,6 +363,8 @@ Value *BlockGenerator::getOrCreateAlloca
}
Value *BlockGenerator::getOrCreateAlloca(const MemoryAccess &Access) {
+ assert(!Access.isArrayKind() && "Trying to get alloca for array kind");
+
if (Access.isPHIKind())
return getOrCreatePHIAlloca(Access.getBaseAddr());
else
@@ -370,6 +372,8 @@ Value *BlockGenerator::getOrCreateAlloca
}
Value *BlockGenerator::getOrCreateAlloca(const ScopArrayInfo *Array) {
+ assert(!Array->isArrayKind() && "Trying to get alloca for array kind");
+
if (Array->isPHIKind())
return getOrCreatePHIAlloca(Array->getBasePtr());
else
More information about the llvm-commits
mailing list