From 021c190f8dba1aedf09707c2e1f3572dbfefb78b Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 22 Sep 2003 20:33:34 +0000 Subject: [PATCH] Squelch warning git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8659 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/ExecutionEngine/Interpreter/Interpreter.cpp | 4 ++-- lib/Transforms/Scalar/InstructionCombining.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/ExecutionEngine/Interpreter/Interpreter.cpp b/lib/ExecutionEngine/Interpreter/Interpreter.cpp index 518290a9f79..4bb317db9eb 100644 --- a/lib/ExecutionEngine/Interpreter/Interpreter.cpp +++ b/lib/ExecutionEngine/Interpreter/Interpreter.cpp @@ -14,7 +14,7 @@ /// create - Create a new interpreter object. This can never fail. /// ExecutionEngine *Interpreter::create(Module *M, bool TraceMode){ - bool isLittleEndian; + bool isLittleEndian = false; switch (M->getEndianness()) { case Module::LittleEndian: isLittleEndian = true; break; case Module::BigEndian: isLittleEndian = false; break; @@ -25,7 +25,7 @@ ExecutionEngine *Interpreter::create(Module *M, bool TraceMode){ break; } - bool isLongPointer; + bool isLongPointer = false; switch (M->getPointerSize()) { case Module::Pointer32: isLongPointer = false; break; case Module::Pointer64: isLongPointer = true; break; diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/Scalar/InstructionCombining.cpp index 787c1a5caab..e69db1d463d 100644 --- a/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/lib/Transforms/Scalar/InstructionCombining.cpp @@ -707,7 +707,7 @@ struct FoldSetCCLogical { case Instruction::And: Code = LHSCode & RHSCode; break; case Instruction::Or: Code = LHSCode | RHSCode; break; case Instruction::Xor: Code = LHSCode ^ RHSCode; break; - default: assert(0 && "Illegal logical opcode!"); + default: assert(0 && "Illegal logical opcode!"); return 0; } Value *RV = getSetCCValue(Code, LHS, RHS); -- 2.11.0