Author: ioeric
Date: Thu Feb  2 13:46:12 2017
New Revision: 293927

URL: http://llvm.org/viewvc/llvm-project?rev=293927&view=rev
Log:
[change-namespace] trying to fix build bot failure caused by r293909.

Modified:
    clang-tools-extra/trunk/change-namespace/ChangeNamespace.cpp

Modified: clang-tools-extra/trunk/change-namespace/ChangeNamespace.cpp
URL: 
http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/change-namespace/ChangeNamespace.cpp?rev=293927&r1=293926&r2=293927&view=diff
==============================================================================
--- clang-tools-extra/trunk/change-namespace/ChangeNamespace.cpp (original)
+++ clang-tools-extra/trunk/change-namespace/ChangeNamespace.cpp Thu Feb  2 
13:46:12 2017
@@ -537,6 +537,8 @@ void ChangeNamespaceTool::run(
                  Result.Nodes.getNodeAs<DeclRefExpr>("enum_const_ref")) {
     // Do not rename the reference if it is already scoped by the EnumDecl 
name.
     if (EnumConstRef->hasQualifier() &&
+        EnumConstRef->getQualifier()->getKind() ==
+            NestedNameSpecifier::SpecifierKind::TypeSpec &&
         EnumConstRef->getQualifier()->getAsType()->isEnumeralType())
       return;
     const auto *EnumConstDecl =


_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to