llvm.org GIT mirror llvm / 88d1266
Fix a bug where a 32-bit address with the high bit does not get symbolicated because the value is incorrectly being signed extended when passed to SymbolLookUp(). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166234 91177308-0d34-0410-b5e6-96231b3b80d8 Kevin Enderby 7 years ago
1 changed file(s) with 3 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
524524 else
525525 ReferenceType = LLVMDisassembler_ReferenceType_InOut_None;
526526 const char *ReferenceName;
527 const char *Name = SymbolLookUp(DisInfo, Value, &ReferenceType, Address,
528 &ReferenceName);
527 uint64_t SymbolValue = 0x00000000ffffffffULL & Value;
528 const char *Name = SymbolLookUp(DisInfo, SymbolValue, &ReferenceType,
529 Address, &ReferenceName);
529530 if (Name) {
530531 SymbolicOp.AddSymbol.Name = Name;
531532 SymbolicOp.AddSymbol.Present = true;