OSDN Git Service

Vulkan/Debug: Always provide the dap::Source::path
authorBen Clayton <bclayton@google.com>
Fri, 3 Apr 2020 12:02:04 +0000 (13:02 +0100)
committerBen Clayton <bclayton@google.com>
Fri, 3 Apr 2020 16:03:57 +0000 (16:03 +0000)
This is common for virtual and physical files.

Bug: b/148401179
Change-Id: I266097382098c1daf776ae64d878f08febee5d0e
Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/43429
Reviewed-by: Antonio Maiorano <amaiorano@google.com>
Tested-by: Ben Clayton <bclayton@google.com>
src/Vulkan/Debug/Server.cpp

index c8751c1..267811d 100644 (file)
@@ -536,10 +536,7 @@ dap::Source Server::Impl::source(File *file)
        {
                out.sourceReference = file->id.value();
        }
-       else
-       {
-               out.path = file->path();
-       }
+       out.path = file->path();
        return out;
 }