diff options
author | Axel Naumann <Axel.Naumann@cern.ch> | 2012-09-17 14:20:57 +0000 |
---|---|---|
committer | Axel Naumann <Axel.Naumann@cern.ch> | 2012-09-17 14:20:57 +0000 |
commit | 4a1270691e28fb10e2804f062c9f74fd38d1667c (patch) | |
tree | 7ef33b8a311ac2a2126059f0d11665b378be08c3 /llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp | |
parent | 8bea57973873b20c6685916b9229af5d9e1e29ef (diff) | |
download | bcm5719-llvm-4a1270691e28fb10e2804f062c9f74fd38d1667c.tar.gz bcm5719-llvm-4a1270691e28fb10e2804f062c9f74fd38d1667c.zip |
Fix a few vars that can end up being used without initialization.
The cases where no initialization happens should still be checked for logic flaws.
llvm-svn: 164032
Diffstat (limited to 'llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp')
-rw-r--r-- | llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp b/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp index 0775cf4a224..afa6a4b5e67 100644 --- a/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp +++ b/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp @@ -392,7 +392,7 @@ bool AddressSanitizer::HasDynamicInitializer(GlobalVariable *G) { } void AddressSanitizer::instrumentMop(AsanFunctionContext &AFC, Instruction *I) { - bool IsWrite; + bool IsWrite = false; Value *Addr = isInterestingMemoryAccess(I, &IsWrite); assert(Addr); if (ClOpt && ClOptGlobals) { |