summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2016-03-28 03:19:50 +0000
committerDavid Majnemer <david.majnemer@gmail.com>2016-03-28 03:19:50 +0000
commit2041b46b7637414c3775edd762ea9b72ec54b45b (patch)
treeb7ed0f35fc6a18c4859e6ebf6e7253a5c74c0158 /clang/lib/CodeGen/CodeGenModule.cpp
parenta51d6ea990e78e49722fb7ebc13d384014f5c691 (diff)
downloadbcm5719-llvm-2041b46b7637414c3775edd762ea9b72ec54b45b.tar.gz
bcm5719-llvm-2041b46b7637414c3775edd762ea9b72ec54b45b.zip
Fix serialization/deserialization for __uuidof
I broke this back in r264529 because I forgot to serialize the UuidAttr member. Fix this by replacing the UuidAttr with a StringRef which is properly serialized and deserialized. llvm-svn: 264562
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp
index 435d646bd43..11f5bea64ca 100644
--- a/clang/lib/CodeGen/CodeGenModule.cpp
+++ b/clang/lib/CodeGen/CodeGenModule.cpp
@@ -1454,7 +1454,7 @@ ConstantAddress CodeGenModule::GetAddrOfUuidDescriptor(
const CXXUuidofExpr* E) {
// Sema has verified that IIDSource has a __declspec(uuid()), and that its
// well-formed.
- StringRef Uuid = E->getUuidAsStringRef();
+ StringRef Uuid = E->getUuidStr();
std::string Name = "_GUID_" + Uuid.lower();
std::replace(Name.begin(), Name.end(), '-', '_');
OpenPOWER on IntegriCloud