]> granicus.if.org Git - clang/commitdiff
Controlling macros are identifiers, not declarations.
authorDouglas Gregor <dgregor@apple.com>
Mon, 17 Oct 2011 18:53:12 +0000 (18:53 +0000)
committerDouglas Gregor <dgregor@apple.com>
Mon, 17 Oct 2011 18:53:12 +0000 (18:53 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@142225 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Serialization/ASTReader.cpp

index 3a8e5036a8dfee3a7742ea2c1fc9405998ab9db3..cf14c211fef01b2479ae8f6c648c6d821e939c1a 100644 (file)
@@ -1400,7 +1400,8 @@ HeaderFileInfoTrait::ReadData(const internal_key_type, const unsigned char *d,
   HFI.Resolved = (Flags >> 1) & 0x01;
   HFI.IndexHeaderMapHeader = Flags & 0x01;
   HFI.NumIncludes = ReadUnalignedLE16(d);
-  HFI.ControllingMacroID = Reader.getGlobalDeclID(M, ReadUnalignedLE32(d));
+  HFI.ControllingMacroID = Reader.getGlobalIdentifierID(M, 
+                                                        ReadUnalignedLE32(d));
   if (unsigned FrameworkOffset = ReadUnalignedLE32(d)) {
     // The framework offset is 1 greater than the actual offset, 
     // since 0 is used as an indicator for "no framework name".