diff options
Diffstat (limited to 'use hasParamAttr instead of hasAttribute.patch')
-rw-r--r-- | use hasParamAttr instead of hasAttribute.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/use hasParamAttr instead of hasAttribute.patch b/use hasParamAttr instead of hasAttribute.patch new file mode 100644 index 000000000000..b9e64f5fb0c7 --- /dev/null +++ b/use hasParamAttr instead of hasAttribute.patch @@ -0,0 +1,13 @@ +--- a/src/gallium/frontends/clover/llvm/codegen/common.cpp ++++ b/src/gallium/frontends/clover/llvm/codegen/common.cpp +@@ -233,8 +233,8 @@ namespace { + } + + } else { +- const bool needs_sign_ext = f.getAttributes().hasAttribute( +- arg.getArgNo() + 1, ::llvm::Attribute::SExt); ++ const bool needs_sign_ext = f.getAttributes().hasParamAttr( ++ arg.getArgNo(), ::llvm::Attribute::SExt); + + args.emplace_back(module::argument::scalar, arg_api_size, + target_size, target_align, |