[llvm] r349617 - [llvm-objdump] - Fix one more BB.
George Rimar via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 19 02:44:49 PST 2018
Author: grimar
Date: Wed Dec 19 02:44:49 2018
New Revision: 349617
URL: http://llvm.org/viewvc/llvm-project?rev=349617&view=rev
Log:
[llvm-objdump] - Fix one more BB.
Should fix the http://lab.llvm.org:8011/builders/polly-amd64-linux/builds/25876/steps/build/logs/stdio:
/home/grosser/buildslave/polly-amd64-linux/llvm.src/tools/llvm-objdump/llvm-objdump.cpp:539:25: error: conditional expression is ambiguous; 'std::string' (aka 'basic_string<char>') can be converted to 'typename std::remove_reference<StringRef>::type' (aka 'llvm::StringRef') and vice versa
Target = Demangle ? demangle(*SymName) : *SymName;
Modified:
llvm/trunk/tools/llvm-objdump/llvm-objdump.cpp
Modified: llvm/trunk/tools/llvm-objdump/llvm-objdump.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-objdump/llvm-objdump.cpp?rev=349617&r1=349616&r2=349617&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-objdump/llvm-objdump.cpp (original)
+++ llvm/trunk/tools/llvm-objdump/llvm-objdump.cpp Wed Dec 19 02:44:49 2018
@@ -536,7 +536,10 @@ static std::error_code getRelocationValu
Expected<StringRef> SymName = symb->getName(StrTab);
if (!SymName)
return errorToErrorCode(SymName.takeError());
- Target = Demangle ? demangle(*SymName) : *SymName;
+ if (Demangle)
+ Target = demangle(*SymName);
+ else
+ Target = *SymName;
}
} else
Target = "*ABS*";
More information about the llvm-commits
mailing list