OSDN Git Service

[ObjectYAML] Fixing a compiler warning
authorChris Bieneman <beanz@apple.com>
Thu, 22 Dec 2016 22:58:07 +0000 (22:58 +0000)
committerChris Bieneman <beanz@apple.com>
Thu, 22 Dec 2016 22:58:07 +0000 (22:58 +0000)
Accidentally re-defined the variable instead of setting it. Oops!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@290388 91177308-0d34-0410-b5e6-96231b3b80d8

tools/yaml2obj/yaml2dwarf.cpp

index 283b0df..8ba1190 100644 (file)
@@ -134,7 +134,7 @@ void yaml2debug_info(raw_ostream &OS, const DWARFYAML::Data &DI) {
            ++FormVal, ++AbbrForm) {
         dwarf::Form Form = AbbrForm->Form;
         do {
-          bool Indirect = false;
+          Indirect = false;
           switch (Form) {
           case dwarf::DW_FORM_addr:
             writeVariableSizedInteger(FormVal->Value, CU.AddrSize, OS,