projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b962b2
)
Fix typoed cast to avoid assertion in MCFragment::dump.
author
Nirav Dave
<niravd@google.com>
Mon, 18 Jun 2018 16:26:11 +0000
(16:26 +0000)
committer
Nirav Dave
<niravd@google.com>
Mon, 18 Jun 2018 16:26:11 +0000
(16:26 +0000)
llvm-svn: 334959
llvm/lib/MC/MCFragment.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/MC/MCFragment.cpp
b/llvm/lib/MC/MCFragment.cpp
index
01ad640
..
0ebcf21
100644
(file)
--- a/
llvm/lib/MC/MCFragment.cpp
+++ b/
llvm/lib/MC/MCFragment.cpp
@@
-334,7
+334,7
@@
LLVM_DUMP_METHOD void MCFragment::dump() const {
OS << "<MCFragment " << (const void *)this << " LayoutOrder:" << LayoutOrder
<< " Offset:" << Offset << " HasInstructions:" << hasInstructions();
- if (const MCEncodedFragment *EF = cast<MCEncodedFragment>(this))
+ if (const MCEncodedFragment *EF =
dyn_
cast<MCEncodedFragment>(this))
OS << " BundlePadding:" << static_cast<unsigned>(EF->getBundlePadding());
OS << ">";