projects
/
platform
/
upstream
/
SPIRV-Tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f80b51f
)
Avoid warning for implicit conversion of char array to bool.
author
David Neto
<dneto@google.com>
Tue, 5 Jan 2016 19:49:08 +0000
(14:49 -0500)
committer
David Neto
<dneto@google.com>
Wed, 6 Jan 2016 18:11:42 +0000
(13:11 -0500)
Clang complains about assert("unhandled") but not
assert(false && "unhandled").
source/disassemble.cpp
patch
|
blob
|
history
diff --git
a/source/disassemble.cpp
b/source/disassemble.cpp
index
07ba2b4
..
83aaade
100644
(file)
--- a/
source/disassemble.cpp
+++ b/
source/disassemble.cpp
@@
-260,7
+260,7
@@
void Disassembler::EmitOperand(const spv_parsed_instruction_t& inst,
}
} else {
// TODO(dneto): Support more than 64-bits at a time.
- assert("Unhandled");
+ assert(
false &&
"Unhandled");
}
} break;
case SPV_OPERAND_TYPE_LITERAL_STRING: {