OSDN Git Service

[ARM64] Fix 'assert("...")' to be 'assert(0 && "...")'. Otherwise, it is
authorChandler Carruth <chandlerc@gmail.com>
Sat, 29 Mar 2014 11:07:40 +0000 (11:07 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Sat, 29 Mar 2014 11:07:40 +0000 (11:07 +0000)
commit3734a337e9dc217e929e13e6f66be2be2e77c953
tree4ba660cf6f7d1e3f1748485bdfd1affd849100ac
parent7b837d8c75f78fe55c9b348b9ec2281169a48d2a
[ARM64] Fix 'assert("...")' to be 'assert(0 && "...")'. Otherwise, it is
no assert at all. ;] Some of these should probably be switched to
llvm_unreachable, but I didn't want to perturb the behavior in this
patch.

Found by -Wstring-conversion, which I'll try to turn on in CMake builds
at least as it is finding useful things.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205091 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM64/ARM64ISelDAGToDAG.cpp
lib/Target/ARM64/Disassembler/ARM64Disassembler.cpp
lib/Target/ARM64/InstPrinter/ARM64InstPrinter.cpp