Skip to content

Commit ac85b98

Browse files
committed
[review] AllowLambda
1 parent 4e5736d commit ac85b98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Sema/SemaAMDGPU.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ bool SemaAMDGPU::CheckAMDGCNBuiltinFunctionCall(unsigned BuiltinID,
2727
// position of memory order and scope arguments in the builtin
2828
unsigned OrderIndex, ScopeIndex;
2929

30-
const auto *FD = SemaRef.getCurFunctionDecl(true);
30+
const auto *FD = SemaRef.getCurFunctionDecl(/*AllowLambda=*/true);
3131
assert(FD && "AMDGPU builtins should not be used outside of a function");
3232
llvm::StringMap<bool> CallerFeatureMap;
3333
getASTContext().getFunctionFeatureMap(CallerFeatureMap, FD);

0 commit comments

Comments
 (0)