Fix build error - strstr returns a const char *

llvm-svn: 131766
This commit is contained in:
Peter Collingbourne 2011-05-20 22:42:59 +00:00
parent 1a1d4777b9
commit f5c22943eb
1 changed files with 1 additions and 1 deletions

View File

@ -314,7 +314,7 @@ InstructionLLVM::Dump
// Workaround for llvm::tB's operands not properly parsed by ARMAsmParser.
if (m_arch_type == llvm::Triple::thumb && opcode.GetString() == "b") {
const char *inst_str;
char *pos = NULL;
const char *pos = NULL;
if (EDGetInstString(&inst_str, m_inst) == 0 && (pos = strstr(inst_str, "#")) != NULL) {
uint64_t operand_value = PC + atoi(++pos);
operands.Printf("0x%llx ", operand_value);