[all-commits] [llvm/llvm-project] f67b48: [Flang] Exit gracefully with a useful message when...
Usman Nadeem via All-commits
all-commits at lists.llvm.org
Mon Mar 20 12:09:04 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: f67b481098cc30567d0f50a2b21f8f57b92052bd
https://github.com/llvm/llvm-project/commit/f67b481098cc30567d0f50a2b21f8f57b92052bd
Author: Nadeem, Usman <mnadeem at quicinc.com>
Date: 2023-03-20 (Mon, 20 Mar 2023)
Changed paths:
M flang/include/flang/Frontend/FrontendActions.h
M flang/lib/Frontend/FrontendActions.cpp
A flang/test/Driver/target-machine-error.f90
Log Message:
-----------
[Flang] Exit gracefully with a useful message when we fail to lookup a target
Without this patch we were asserting with a generic message `Failed to
create Target`, but we already have a detailed error message stored in
the variable `error` after calling `lookupTarget()` but this error was not
getting used/printed.
With this patch we will emit a message with more details instead of a
stack dump with a generic message.
Differential Revision: https://reviews.llvm.org/D146333
Change-Id: I7ddee917cf921a2133ca3e6b35791b2142f770a2
More information about the All-commits
mailing list