commit | 3780ad8b998d93d7db406919c06137cdb786ef05 | [log] [tgz] |
---|---|---|
author | Axel Naumann <Axel.Naumann@cern.ch> | Mon Sep 17 14:20:57 2012 +0000 |
committer | Axel Naumann <Axel.Naumann@cern.ch> | Mon Sep 17 14:20:57 2012 +0000 |
tree | 201909f47db287382b23073c83ecf72d1dbfb4c6 | |
parent | c8bf0f86624f025ca7c2b5cfc35ef3fb904a3930 [diff] [blame] |
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164032 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Transforms/Instrumentation/AddressSanitizer.cpp b/lib/Transforms/Instrumentation/AddressSanitizer.cpp index 0775cf4..afa6a4b 100644 --- a/lib/Transforms/Instrumentation/AddressSanitizer.cpp +++ b/lib/Transforms/Instrumentation/AddressSanitizer.cpp
@@ -392,7 +392,7 @@ } void AddressSanitizer::instrumentMop(AsanFunctionContext &AFC, Instruction *I) { - bool IsWrite; + bool IsWrite = false; Value *Addr = isInterestingMemoryAccess(I, &IsWrite); assert(Addr); if (ClOpt && ClOptGlobals) {