quick fix: remove GlobalVariable::GlobalVariable mistakenly commited at r144933....
[oota-llvm.git] / lib / Transforms / Instrumentation / AddressSanitizer.cpp
index 1f3672e25cdd95ad80582d8c711e143c43e0aae4..f9c10f38bfcb5ec68dfe1360dba1867f7863155f 100644 (file)
@@ -450,9 +450,9 @@ bool AddressSanitizer::insertGlobalRedzones(Module &M) {
     if (!G->hasInitializer()) continue;
     // Touch only those globals that will not be defined in other modules.
     // Don't handle ODR type linkages since other modules may be built w/o asan.
-    if (G->getLinkage() != GlobalVariable::GlobalVariable::ExternalLinkage &&
-        G->getLinkage() != GlobalVariable::GlobalVariable::PrivateLinkage &&
-        G->getLinkage() != GlobalVariable::GlobalVariable::InternalLinkage)
+    if (G->getLinkage() != GlobalVariable::ExternalLinkage &&
+        G->getLinkage() != GlobalVariable::PrivateLinkage &&
+        G->getLinkage() != GlobalVariable::InternalLinkage)
       continue;
     // For now, just ignore this Alloca if the alignment is large.
     if (G->getAlignment() > RedzoneSize) continue;