mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
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
This commit is contained in:
parent
aa267976b5
commit
bcdf671ac4
@ -392,7 +392,7 @@ bool AddressSanitizer::HasDynamicInitializer(GlobalVariable *G) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void AddressSanitizer::instrumentMop(AsanFunctionContext &AFC, Instruction *I) {
|
void AddressSanitizer::instrumentMop(AsanFunctionContext &AFC, Instruction *I) {
|
||||||
bool IsWrite;
|
bool IsWrite = false;
|
||||||
Value *Addr = isInterestingMemoryAccess(I, &IsWrite);
|
Value *Addr = isInterestingMemoryAccess(I, &IsWrite);
|
||||||
assert(Addr);
|
assert(Addr);
|
||||||
if (ClOpt && ClOptGlobals) {
|
if (ClOpt && ClOptGlobals) {
|
||||||
|
@ -1796,7 +1796,7 @@ bool llvm::FoldBranchToCommonDest(BranchInst *BI) {
|
|||||||
continue;
|
continue;
|
||||||
|
|
||||||
// Determine if the two branches share a common destination.
|
// Determine if the two branches share a common destination.
|
||||||
Instruction::BinaryOps Opc;
|
Instruction::BinaryOps Opc = Instruction::BinaryOpsEnd;
|
||||||
bool InvertPredCond = false;
|
bool InvertPredCond = false;
|
||||||
|
|
||||||
if (BI->isConditional()) {
|
if (BI->isConditional()) {
|
||||||
|
@ -148,7 +148,7 @@ struct COFFParser {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (KeyValue == "Machine") {
|
if (KeyValue == "Machine") {
|
||||||
uint16_t Machine;
|
uint16_t Machine = COFF::MT_Invalid;
|
||||||
if (!getAs(Value, Machine)) {
|
if (!getAs(Value, Machine)) {
|
||||||
// It's not a raw number, try matching the string.
|
// It's not a raw number, try matching the string.
|
||||||
StringRef ValueValue = Value->getValue(Storage);
|
StringRef ValueValue = Value->getValue(Storage);
|
||||||
|
Loading…
Reference in New Issue
Block a user