From: Bob Haarman Date: Tue, 29 Aug 2017 04:08:16 +0000 (+0000) Subject: Revert "[codeview] don't try to emit variable locations without registers" X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4d4211ea3a9298c6950ff3f70bda118e9c3f7532;p=llvm Revert "[codeview] don't try to emit variable locations without registers" This reverts commit a256fbcacf448ee793d23552c46ed2971bf9eff5. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@311976 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp b/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp index 6a35e3214bd..ed2c263d320 100644 --- a/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp +++ b/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp @@ -988,7 +988,7 @@ void CodeViewDebug::calculateRanges( } // If we don't know how to handle this range, skip past it. - if (!Supported || Location.Register == 0 || (Location.Offset && !Location.InMemory)) + if (!Supported || (Location.Offset && !Location.InMemory)) continue; // Handle the two cases we can handle: indirect in memory and in register.