1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00

Fixed few warnings.

llvm-svn: 160493
This commit is contained in:
Galina Kistanova 2012-07-19 04:50:12 +00:00
parent d091d1863b
commit c4a2a7cce5
3 changed files with 4 additions and 4 deletions

View File

@ -354,7 +354,7 @@ public:
/// variable, possibly emitting it to memory if needed. This is used by the
/// Emitter.
virtual void *getOrEmitGlobalVariable(const GlobalVariable *GV) {
return getPointerToGlobal((GlobalValue*)GV);
return getPointerToGlobal((const GlobalValue *)GV);
}
/// Registers a listener to be called back on various events within

View File

@ -172,7 +172,7 @@ public:
// If we should include the address of the node in the label, do so now.
if (DTraits.hasNodeAddressLabel(Node, G))
O << "|" << (void*)Node;
O << "|" << static_cast<const void*>(Node);
}
std::string edgeSourceLabels;
@ -192,7 +192,7 @@ public:
// If we should include the address of the node in the label, do so now.
if (DTraits.hasNodeAddressLabel(Node, G))
O << "|" << (void*)Node;
O << "|" << static_cast<const void*>(Node);
}
if (DTraits.hasEdgeDestLabels()) {

View File

@ -942,7 +942,7 @@ void SelectionDAGBuilder::visit(unsigned Opcode, const User &I) {
default: llvm_unreachable("Unknown instruction type encountered!");
// Build the switch statement using the Instruction.def file.
#define HANDLE_INST(NUM, OPCODE, CLASS) \
case Instruction::OPCODE: visit##OPCODE((CLASS&)I); break;
case Instruction::OPCODE: visit##OPCODE((const CLASS&)I); break;
#include "llvm/Instruction.def"
}