mirror of
https://github.com/intel/llvm.git
synced 2026-02-01 08:56:15 +08:00
Fix typo in function name Bllock -> Block
llvm-svn: 308715
This commit is contained in:
@@ -2943,7 +2943,7 @@ public:
|
||||
///
|
||||
/// If this basic block does something with a `Function` other than calling
|
||||
/// a function that we support in a kernel, return true.
|
||||
bool containsInvalidKernelFunctionInBllock(const BasicBlock *BB) {
|
||||
bool containsInvalidKernelFunctionInBlock(const BasicBlock *BB) {
|
||||
for (const Instruction &Inst : *BB) {
|
||||
const CallInst *Call = dyn_cast<CallInst>(&Inst);
|
||||
if (Call && isValidFunctionInKernel(Call->getCalledFunction())) {
|
||||
@@ -2965,13 +2965,13 @@ public:
|
||||
bool containsInvalidKernelFunction(const Scop &S) {
|
||||
for (auto &Stmt : S) {
|
||||
if (Stmt.isBlockStmt()) {
|
||||
if (containsInvalidKernelFunctionInBllock(Stmt.getBasicBlock()))
|
||||
if (containsInvalidKernelFunctionInBlock(Stmt.getBasicBlock()))
|
||||
return true;
|
||||
} else {
|
||||
assert(Stmt.isRegionStmt() &&
|
||||
"Stmt was neither block nor region statement");
|
||||
for (const BasicBlock *BB : Stmt.getRegion()->blocks())
|
||||
if (containsInvalidKernelFunctionInBllock(BB))
|
||||
if (containsInvalidKernelFunctionInBlock(BB))
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user