aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorQuentin Colombet <qcolombet@apple.com>2014-05-08 23:12:27 +0000
committerQuentin Colombet <qcolombet@apple.com>2014-05-08 23:12:27 +0000
commit2eb151e29f8c2b662ffd49c0de12f1d7c75c466a (patch)
tree5a0d13a7188223b3c0d24efca0e907707aa2ee67 /clang/lib/CodeGen/CodeGenModule.cpp
parent54a824b758b7f2aa3cce3513373280c95bc7b584 (diff)
downloadllvm-2eb151e29f8c2b662ffd49c0de12f1d7c75c466a.zip
llvm-2eb151e29f8c2b662ffd49c0de12f1d7c75c466a.tar.gz
llvm-2eb151e29f8c2b662ffd49c0de12f1d7c75c466a.tar.bz2
[TargetInstrInfo] Fix the implementation of commuteInstruction to match the
comment of the API. Relaxes the behavior of TargetInstrInfo::commuteInstruction when TargetInstrInfo::findCommutedOpIndices returns false. Previously TargetInstrInfo triggered a fatal error in such situation whereas based on the comment in the API it should just return nullptr. Indeed the only precondition that should be ensured is that the instruction must be commutable. llvm-svn: 208371
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions