projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4f922f2
)
Resolve this GCC warning:
author
Nick Lewycky
<nicholas@mxc.ca>
Tue, 28 Sep 2010 21:40:26 +0000
(21:40 +0000)
committer
Nick Lewycky
<nicholas@mxc.ca>
Tue, 28 Sep 2010 21:40:26 +0000
(21:40 +0000)
ARMTargetMachine.cpp:53: error: control reaches end of non-void function
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114992
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/ARM/ARMTargetMachine.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/ARM/ARMTargetMachine.cpp
b/lib/Target/ARM/ARMTargetMachine.cpp
index 1cef36689d6c8eea019a9b52a24863ec11f84b10..d8dfb71b1920b2b0b2ae0d6effdf14687126414f 100644
(file)
--- a/
lib/Target/ARM/ARMTargetMachine.cpp
+++ b/
lib/Target/ARM/ARMTargetMachine.cpp
@@
-45,7
+45,8
@@
static MCStreamer *createMCStreamer(const Target &T, const std::string &TT,
case Triple::MinGW64:
case Triple::Cygwin:
case Triple::Win32:
- assert(0 && "ARM does not support Windows COFF format"); break;
+ llvm_unreachable("ARM does not support Windows COFF format");
+ return NULL;
default:
return createELFStreamer(Ctx, TAB, _OS, _Emitter, RelaxAll);
}