r223642 - [libclang] Use same USR encoding for 'char' regardless of what the target considers the sign to be.

Argyrios Kyrtzidis akyrtzi at gmail.com
Mon Dec 8 01:09:05 PST 2014


Author: akirtzidis
Date: Mon Dec  8 03:09:05 2014
New Revision: 223642

URL: http://llvm.org/viewvc/llvm-project?rev=223642&view=rev
Log:
[libclang] Use same USR encoding for 'char' regardless of what the target considers the sign to be.

Should fix the clang-hexagon-elf bot.

Modified:
    cfe/trunk/lib/Index/USRGeneration.cpp

Modified: cfe/trunk/lib/Index/USRGeneration.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Index/USRGeneration.cpp?rev=223642&r1=223641&r2=223642&view=diff
==============================================================================
--- cfe/trunk/lib/Index/USRGeneration.cpp (original)
+++ cfe/trunk/lib/Index/USRGeneration.cpp Mon Dec  8 03:09:05 2014
@@ -560,7 +560,6 @@ void USRGenerator::VisitType(QualType T)
           c = 'v'; break;
         case BuiltinType::Bool:
           c = 'b'; break;
-        case BuiltinType::Char_U:
         case BuiltinType::UChar:
           c = 'c'; break;
         case BuiltinType::Char16:
@@ -577,6 +576,7 @@ void USRGenerator::VisitType(QualType T)
           c = 'k'; break;
         case BuiltinType::UInt128:
           c = 'j'; break;
+        case BuiltinType::Char_U:
         case BuiltinType::Char_S:
           c = 'C'; break;
         case BuiltinType::SChar:





More information about the cfe-commits mailing list