diff options
author | Chris Lattner <sabre@nondot.org> | 2003-09-22 20:33:34 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-09-22 20:33:34 +0000 |
commit | 021c190f8dba1aedf09707c2e1f3572dbfefb78b (patch) | |
tree | 4bbb12ea2507e5c9e4686f2aaa4239d4f3692e7b | |
parent | 8bab27d28213d8fd58ccf1f7b33360c87364fe5d (diff) |
Squelch warning
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8659 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/ExecutionEngine/Interpreter/Interpreter.cpp | 4 | ||||
-rw-r--r-- | 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 518290a9f7..4bb317db9e 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 787c1a5caa..e69db1d463 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); |