[llvm-commits] [llvm] r144936 - /llvm/trunk/lib/Transforms/Instrumentation/AddressSanitizer.cpp
Kostya Serebryany
kcc at google.com
Thu Nov 17 15:37:54 PST 2011
Author: kcc
Date: Thu Nov 17 17:37:53 2011
New Revision: 144936
URL: http://llvm.org/viewvc/llvm-project?rev=144936&view=rev
Log:
quick fix: remove GlobalVariable::GlobalVariable mistakenly commited at r144933. For some reason this compiles on linux
Modified:
llvm/trunk/lib/Transforms/Instrumentation/AddressSanitizer.cpp
Modified: llvm/trunk/lib/Transforms/Instrumentation/AddressSanitizer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Instrumentation/AddressSanitizer.cpp?rev=144936&r1=144935&r2=144936&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Instrumentation/AddressSanitizer.cpp (original)
+++ llvm/trunk/lib/Transforms/Instrumentation/AddressSanitizer.cpp Thu Nov 17 17:37:53 2011
@@ -450,9 +450,9 @@
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;
More information about the llvm-commits
mailing list