Changed tests_typestate to test_typestate for consistency.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@193648 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Analysis/Consumed.cpp b/lib/Analysis/Consumed.cpp
index e508674..35267c1 100644
--- a/lib/Analysis/Consumed.cpp
+++ b/lib/Analysis/Consumed.cpp
@@ -167,7 +167,7 @@
}
static bool isTestingFunction(const FunctionDecl *FunDecl) {
- return FunDecl->hasAttr<TestsTypestateAttr>();
+ return FunDecl->hasAttr<TestTypestateAttr>();
}
static bool isValueType(QualType ParamType) {
@@ -248,10 +248,10 @@
static ConsumedState testsFor(const FunctionDecl *FunDecl) {
assert(isTestingFunction(FunDecl));
- switch (FunDecl->getAttr<TestsTypestateAttr>()->getTestState()) {
- case TestsTypestateAttr::Unconsumed:
+ switch (FunDecl->getAttr<TestTypestateAttr>()->getTestState()) {
+ case TestTypestateAttr::Unconsumed:
return CS_Unconsumed;
- case TestsTypestateAttr::Consumed:
+ case TestTypestateAttr::Consumed:
return CS_Consumed;
}
llvm_unreachable("invalid enum");