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 | 2caaaba3e90365b0ac6712b1986debc2a855994a (patch) | |
tree | 316b2ccbacd4ad7dd5006e2c4215ee169916ee4c | |
parent | 6954f20e223f0202753afb5df0b130df387a6e5e (diff) | |
download | bcm5719-llvm-2caaaba3e90365b0ac6712b1986debc2a855994a.tar.gz bcm5719-llvm-2caaaba3e90365b0ac6712b1986debc2a855994a.zip |
Squelch warning
llvm-svn: 8659
-rw-r--r-- | llvm/lib/ExecutionEngine/Interpreter/Interpreter.cpp | 4 | ||||
-rw-r--r-- | llvm/lib/Transforms/Scalar/InstructionCombining.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/ExecutionEngine/Interpreter/Interpreter.cpp b/llvm/lib/ExecutionEngine/Interpreter/Interpreter.cpp index 518290a9f79..4bb317db9eb 100644 --- a/llvm/lib/ExecutionEngine/Interpreter/Interpreter.cpp +++ b/llvm/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/llvm/lib/Transforms/Scalar/InstructionCombining.cpp b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp index 787c1a5caab..e69db1d463d 100644 --- a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/llvm/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); |