diff options
author | Alexey Samsonov <samsonov@google.com> | 2012-11-02 12:20:34 +0000 |
---|---|---|
committer | Alexey Samsonov <samsonov@google.com> | 2012-11-02 12:20:34 +0000 |
commit | 9ce84c1c95c0153a2f33e188ce0db00770425f9e (patch) | |
tree | 4e74b20640f1f676e5a9b86e7709b34c711e5d72 /lib | |
parent | 9825d1edf000b64c967264593a59b0f2023caf6a (diff) | |
download | external_llvm-9ce84c1c95c0153a2f33e188ce0db00770425f9e.zip external_llvm-9ce84c1c95c0153a2f33e188ce0db00770425f9e.tar.gz external_llvm-9ce84c1c95c0153a2f33e188ce0db00770425f9e.tar.bz2 |
Fix whitespaces
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167295 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Transforms/Instrumentation/AddressSanitizer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Transforms/Instrumentation/AddressSanitizer.cpp b/lib/Transforms/Instrumentation/AddressSanitizer.cpp index 0c6a406..93f785c 100644 --- a/lib/Transforms/Instrumentation/AddressSanitizer.cpp +++ b/lib/Transforms/Instrumentation/AddressSanitizer.cpp @@ -509,7 +509,7 @@ bool AddressSanitizer::ShouldInstrumentGlobal(GlobalVariable *G) { if (BL->isIn(*G)) return false; if (!Ty->isSized()) return false; if (!G->hasInitializer()) return false; - if (GlobalsCreatedByAsan.count(G)) return false; // Our own global. + if (GlobalsCreatedByAsan.count(G)) return false; // Our own global. // 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::ExternalLinkage && @@ -1092,7 +1092,7 @@ bool AddressSanitizer::poisonStackInFunction(Function &F) { Value *BasePlus1 = IRB.CreateAdd(LocalStackBase, ConstantInt::get(IntptrTy, LongSize/8)); BasePlus1 = IRB.CreateIntToPtr(BasePlus1, IntptrPtrTy); - GlobalVariable *StackDescriptionGlobal = + GlobalVariable *StackDescriptionGlobal = createPrivateGlobalForString(*F.getParent(), StackDescription.str()); GlobalsCreatedByAsan.insert(StackDescriptionGlobal); Value *Description = IRB.CreatePointerCast(StackDescriptionGlobal, IntptrTy); |