aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--MinGW/Driver.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/MinGW/Driver.cpp b/MinGW/Driver.cpp
index 77bf05755..e69db7ca4 100644
--- a/MinGW/Driver.cpp
+++ b/MinGW/Driver.cpp
@@ -178,7 +178,7 @@ bool mingw::link(ArrayRef<const char *> ArgsArr, raw_ostream &Diag) {
StringRef Prefix = "";
bool Static = false;
for (auto *A : Args) {
- switch (A->getOption().getID()) {
+ switch (A->getOption().getUnaliasedOption().getID()) {
case OPT_INPUT:
if (StringRef(A->getValue()).endswith(".def"))
Add("-def:" + StringRef(A->getValue()));