aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/R600/SITypeRewriter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Target/R600/SITypeRewriter.cpp')
-rw-r--r--lib/Target/R600/SITypeRewriter.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Target/R600/SITypeRewriter.cpp b/lib/Target/R600/SITypeRewriter.cpp
index 9318dc1..27bbf4f 100644
--- a/lib/Target/R600/SITypeRewriter.cpp
+++ b/lib/Target/R600/SITypeRewriter.cpp
@@ -61,8 +61,7 @@ bool SITypeRewriter::doInitialization(Module &M) {
}
bool SITypeRewriter::runOnFunction(Function &F) {
- AttributeSet Set = F.getAttributes();
- Attribute A = Set.getAttribute(AttributeSet::FunctionIndex, "ShaderType");
+ Attribute A = F.getFnAttribute("ShaderType");
unsigned ShaderType = ShaderType::COMPUTE;
if (A.isStringAttribute()) {