[tint][ir] Change Instruction::Result() return type

To be InstructionResult* instead of Value*. All Instructions have
InstructionResult result values. Return the more specific type.

Change-Id: I786bb2e48aafe591eb0020409792cdd48ae55377
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/163243
Reviewed-by: dan sinclair <dsinclair@chromium.org>
Kokoro: Kokoro <noreply+kokoro@google.com>
diff --git a/src/tint/lang/core/ir/instruction.h b/src/tint/lang/core/ir/instruction.h
index e2af39b..6b54620 100644
--- a/src/tint/lang/core/ir/instruction.h
+++ b/src/tint/lang/core/ir/instruction.h
@@ -126,7 +126,7 @@
     /// @param idx the index of the result
     /// @returns the result with index @p idx, or `nullptr` if there are no results or the index is
     /// out of bounds.
-    Value* Result(size_t idx) {
+    InstructionResult* Result(size_t idx) {
         auto res = Results();
         return idx < res.Length() ? res[idx] : nullptr;
     }
@@ -134,7 +134,7 @@
     /// @param idx the index of the result
     /// @returns the result with index @p idx, or `nullptr` if there are no results or the index is
     /// out of bounds.
-    const Value* Result(size_t idx = 0) const {
+    const InstructionResult* Result(size_t idx = 0) const {
         auto res = Results();
         return idx < res.Length() ? res[idx] : nullptr;
     }